Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```