Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

larvitdbmigration

Package Overview
Dependencies
Maintainers
2
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

larvitdbmigration - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

testmigrations/3.sql

20

index.js

@@ -70,6 +70,3 @@ 'use strict';

db.query(sql, function(err) {
if (err) {
cb(err);
return;
}
if (err) { cb(err); return; }

@@ -123,6 +120,3 @@ runScripts(parseInt(startVersion) + 1, cb);

db.query('DESCRIBE `' + options.tableName + '`', function(err, rows) {
if (err) {
cb(err);
return;
}
if (err) { cb(err); return; }

@@ -132,6 +126,3 @@ if (rows.length === 2 && rows[0].Field === 'version' && rows[1].Field === 'running') {

db.query('ALTER TABLE `' + options.tableName + '` ADD `id` tinyint(1) unsigned NOT NULL DEFAULT \'1\' FIRST;', function(err) {
if (err) {
cb(err);
return;
}
if (err) { cb(err); return; }

@@ -158,6 +149,3 @@ db.query('ALTER TABLE `' + options.tableName + '` ADD PRIMARY KEY `id` (`id`);', cb);

db.query('SELECT version FROM `' + options.tableName + '`;', function(err, rows) {
if (err) {
cb(err);
return;
}
if (err) { cb(err); return; }

@@ -164,0 +152,0 @@ curVer = parseInt(rows[0].version);

2

package.json

@@ -38,3 +38,3 @@ {

},
"version": "1.1.0",
"version": "1.1.1",
"readmeFilename": "README.md",

@@ -41,0 +41,0 @@ "scripts": {

@@ -66,3 +66,5 @@ 'use strict';

fs.stat(altConfFile, function(err) {
assert( ! err, 'fs.stat failed: ' + err.message);
if (err) {
assert( ! err, 'fs.stat failed: ' + err.message);
}

@@ -110,10 +112,10 @@ if ( ! err) {

/*it('Make sure function works', function(done) {
db.query('SELECT multi_two(4)', function(err, rows) {
it('Make sure function works', function(done) {
db.query('SELECT multi_two(4) AS foo', function(err, rows) {
assert( ! err, 'err should be negative');
assert.deepEqual(rows[0], 8);
assert.deepEqual(rows[0].foo, 8);
done();
});
});*/
});
});
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