node-mini-migrations
Advanced tools
Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "node-mini-migrations", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "A very small, lightweight and flexible migrations library unconcerned with what database you use", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -28,5 +28,3 @@ # Mini Migrations for NodeJS | ||
getMigrationState: (id, callback) => { | ||
sqlite.get(db, 'SELECT file FROM _migrations WHERE file = ?', [id], (error, result) => { | ||
callback(error, (result && result.length > 0)); | ||
}); | ||
sqlite.getOne(db, 'SELECT file FROM _migrations WHERE file = ?', [id], callback); | ||
}, | ||
@@ -33,0 +31,0 @@ |
@@ -9,11 +9,4 @@ const sqlite = require('sqlite-fp'); | ||
finish: (direction, callback) => { | ||
// sqlite.close(db, callback); | ||
callback(); | ||
}, | ||
getMigrationState: (id, callback) => { | ||
sqlite.get(db, 'SELECT file FROM _migrations WHERE file = ?', [id], (error, result) => { | ||
callback(error, (result && result.length > 0)); | ||
}); | ||
sqlite.getOne(db, 'SELECT file FROM _migrations WHERE file = ?', [id], callback); | ||
}, | ||
@@ -20,0 +13,0 @@ |
@@ -9,11 +9,4 @@ const sqlite = require('sqlite-fp'); | ||
finish: (direction, callback) => { | ||
// sqlite.close(db, callback); | ||
callback(); | ||
}, | ||
getMigrationState: (id, callback) => { | ||
sqlite.get(db, 'SELECT file FROM _migrations WHERE file = ?', [id], (error, result) => { | ||
callback(error, (result && result.length > 0)); | ||
}); | ||
sqlite.get(db, 'SELECT file FROM _migrations WHERE file = ?', [id], callback); | ||
}, | ||
@@ -20,0 +13,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
13463
243
65