Seaworthy migration manager.
- Javascript
- SQL (through http://knexjs.org)
- postgres
- mysql
- mariadb
- sqlite3
- oracle
mariner init -b
mariner.js (with default values)
module.exports = {
directory: './migrations',
plugins: ['sql', 'js'],
// see list of available options at http://knexjs.org
sql: {},
backend: 'sql',
};
To create the default configuration file
mariner init
If no extension is provided mariner will use sql
mariner create "name of migration" -e <file-extension>
When migrating if no number is supplied on up
all migrations are executed, on down it defaults to
the last migration
mariner migrate up|down -n <num>