Comparing version 0.3.0 to 0.4.0
@@ -241,4 +241,8 @@ 'use strict'; | ||
if (!utils.isFunction(migration.migrate)) msg = '`migrate` is not a function'; | ||
if (migration.rollback && !utils.isFunction(migration.rollback)) | ||
msg = '`rollback` set but it`s not a function'; | ||
if (migration.rollback && !utils.isFunction(migration.rollback)) { | ||
msg = '`rollback` set but it`s not a function'; | ||
} | ||
if (migration.tags && !utils.isArray(migration.tags)) { | ||
msg = '`tags` set but it`s not an array'; | ||
} | ||
callback(msg ? new Error(msg) : null); | ||
@@ -245,0 +249,0 @@ }; |
@@ -13,2 +13,4 @@ 'use strict'; | ||
exports.isArray = Array.isArray; | ||
exports.noop = function() {}; | ||
@@ -15,0 +17,0 @@ |
{ | ||
"name": "east", | ||
"description": "node.js database migration tool for mongodb, sqlite, postgres, mysql", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"author": "Oleg Korobenko <oleg.korobenko@gmail.com>", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -178,2 +178,5 @@ # east | ||
You also can export `tags` array from migration and then migrate only | ||
migrations with selected tag specified by `--tag` option. | ||
### rollback | ||
@@ -180,0 +183,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32382
501
271