jbrumwell / mariner

Seaworthy migration manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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>

About

Seaworthy migration manager

License:MIT License


Languages

Language:JavaScript 98.4%Language:Makefile 1.6%