immigration-postgres

2.0.0 • Public • Published

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

Name Type Description Required
table String The table name for migrations to be persisted (created automatically) yes
config String A path to a module or json exporting/containing options (I.e. require(options.config)) no
...other Any All other options are passed to PG's Pool no

License

MIT © Aboviq AB

Package Sidebar

Install

npm i immigration-postgres

Weekly Downloads

2

Version

2.0.0

License

MIT

Unpacked Size

11.4 kB

Total Files

14

Last publish

Collaborators

  • joakimbeng