1.0.1 • Published 7 years ago

immigration-mysql v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

immigration-mysql

Build status NPM version XO code style

MySQL adapter for Immigration

Installation

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

npm install --save immigration immigration-mysql

Usage

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

immigration --use [ immigration-mysql --table migrations --config ./src/a-mysql-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
...anyMixedAny connection option that mysql2 acceptsno

License

MIT © Joakim Carlstein