Socket
Socket
Sign inDemoInstall

db-migrate

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db-migrate - npm Package Compare versions

Comparing version 0.0.6 to 0.1.0

CHANGELOG.md

3

lib/driver/base.js

@@ -109,3 +109,2 @@ var util = require('util');

}
var sql = util.format('DROP TABLE %s %s', ifExistsSql, tableName);

@@ -158,2 +157,4 @@ this.runSql(sql, callback);

startMigration: function(cb){cb()},
endMigration: function(cb){cb()},
// sql, params, callback

@@ -160,0 +161,0 @@ // sql, callback

@@ -121,5 +121,7 @@ var async = require('async');

async.forEachSeries(toRun, function(migration, next) {
self.up(migration.up.bind(migration), function(err) {
if (err) { callback(err); return; }
self.writeMigrationRecord(migration, next);
self.driver.startMigration(function() {
self.up(migration.up.bind(migration), function(err) {
if (err) { callback(err); return; }
self.writeMigrationRecord(migration, function() { self.driver.endMigration(next) });
});
});

@@ -126,0 +128,0 @@ }, callback);

@@ -7,3 +7,3 @@ {

"keywords": ["database", "db", "migrate", "migration", "sqlite", "mysql"],
"version": "0.0.6",
"version": "0.1.0",
"engines": { "node" : ">=0.6.0" },

@@ -22,5 +22,8 @@ "maintainers": [

"devDependencies": {
"vows": "~0.5.13",
"vows": "~0.6.2",
"db-info": "~0.0.1"
},
"scripts": {
"test": "vows"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc