0.3.5 • Published 8 years ago

db-migrate-diff v0.3.5

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

db-migrate-diff

Migration difference detection module for db-migrate.

npm version Build Status codecov.io Dependency Status

https://raw.githubusercontent.com/holyshared/db-migrate-diff/master/screen-shot.png

Installation

npm install db-migrate-diff --save-dev

Basic usage

You just run the following command.

db-migrate-diff [options]

If you want to check the difference between the production environment, it will command such as the following.

db-migrate-diff -e production -m ./migrations --config ./database.json

Command line options

  • --env, -e The environment to run the migrations under. default: "dev"
  • --migrations-dir, -m The directory containing your migration files. default: "./migrations"
  • --config Location of the database.json file. default: "./database.json"
  • --migration-table Set the name of the migration table.
  • --reporter, -r Reporter of the difference default - Display the differences of migration. ghost - Display the migration that does not exist.

Tests

Create a database for unit test.

CREATE DATABASE dbmigrate CHARACTER SET = utf8;

Run the test.

npm install
npm test
0.3.5

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago