2.0.0 • Published 4 years ago

immigration-postgres v2.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

immigration-postgres

Build status NPM version XO code style

Postgres adapter for Immigration

Installation

Install immigration-postgres and it's peers: immigration using npm:

npm install --save immigration immigration-postgres

Usage

The adapter will automatically create the given table on first run (if it doesn't exist already).

immigration --use [ immigration-postgres --table migrations --config ./src/a-postgres-config-file ] up --new

Options

NameTypeDescriptionRequired
tableStringThe table name for migrations to be persisted (created automatically)yes
configStringA path to a module or json exporting/containing options (I.e. require(options.config))no
...otherAnyAll other options are passed to PG's Poolno

License

MIT © Aboviq AB