Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 780 Bytes

README.md

File metadata and controls

41 lines (27 loc) · 780 Bytes

pg-simple-migration

Simple migration tool using pg-promise

Install

$ npm install pg-simple-migration

Use

Environment Variables

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

Commands

Create migaration file

$ npx pg-simple-migration create [comment]

Execute migarations

$ npx pg-simple-migration up

License

MIT License.