Skip to content

joakimbeng/immigration-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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
...any Mixed Any connection option that mysql2 accepts no

License

MIT © Joakim Carlstein

About

MySQL adapter for Immigration

Resources

Stars

Watchers

Forks

Packages

No packages published