Simple migration tool using pg-promise
$ npm install pg-simple-migration
Environment Variables | Description |
---|---|
DB_HOST | Postgres ip address or domain name |
DB_DATABASE | Name of database to connect to |
DB_USER | Username of database user |
DB_PASSWORD | Password of database user |
MIGRATIONS_PATH | Path of the migration files |
Create migaration file
$ npx pg-simple-migration create [comment]
Execute migarations
$ npx pg-simple-migration up