Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asenyshyn/pg-patch
set of scripts to help organize and manage Postgresql database source code.
https://github.com/asenyshyn/pg-patch
database migrations plpgsql postgresql shell
Last synced: about 2 months ago
JSON representation
set of scripts to help organize and manage Postgresql database source code.
- Host: GitHub
- URL: https://github.com/asenyshyn/pg-patch
- Owner: asenyshyn
- Created: 2015-04-14T14:58:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-24T13:15:48.000Z (almost 8 years ago)
- Last Synced: 2024-10-12T09:42:16.419Z (3 months ago)
- Topics: database, migrations, plpgsql, postgresql, shell
- Language: PLpgSQL
- Size: 27.3 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pg-patch
## Installation
To setup database for the first time use:1. Create database with `psql -h 127.0.0.1 -p 5432 -U postgres -f init/db_setup.sql -v new_database=demodb`
2. Install demodb into created database `./run.sh -h 127.0.0.1 -p 5432 -U demodb_owner -d demodb`## Patch
```sh
./run.sh -h 127.0.0.1 -p 5432 -U demodb_owner -d demodb
```