mariner

1.0.3 • Public • Published

Mariner

Seaworthy migration manager.

Supported Migration Types

Upgrading from < 1.0

mariner init -b

Configuration

mariner.js (with default values)

module.exports = {
  directory: './migrations',
 
  plugins: ['sql', 'js'],
 
  // see list of available options at http://knexjs.org
  sql: {},
 
  backend: 'sql',
};

Usage

Initiate Mariner

To create the default configuration file

mariner init

Migration creation

If no extension is provided mariner will use sql

mariner create "name of migration" -e <file-extension>

Migrating

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>

Readme

Keywords

Package Sidebar

Install

npm i mariner

Weekly Downloads

27

Version

1.0.3

License

MIT

Unpacked Size

64.9 kB

Total Files

29

Last publish

Collaborators

  • bjy