Socket
Socket
Sign inDemoInstall

db-migrate

Package Overview
Dependencies
Maintainers
2
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 1.0.0-beta.19 to 1.0.0-beta.20

17

lib/learn.js

@@ -124,4 +124,4 @@ const Promise = require('bluebird');

this.checkColumn(t, c);
const hasColumns = this.schema[t].columns !== undefined
const columns = hasColumns ? this.schema[t].columns ? this.schema[t];
const hasColumns = this.schema[t].columns !== undefined;
const columns = hasColumns ? this.schema[t].columns : this.schema[t];

@@ -206,7 +206,7 @@ if (columns[c].notNull === true) {

if(hasColumns) {
if (hasColumns) {
delete this.schema[t].columns[c];
} else {
delete this.schema[t][c];
}
}

@@ -232,4 +232,4 @@ return Promise.resolve(alter);

this.schema[t] = this.schema[t] || {};
const hasColumns = this.schema[t].columns !== undefined
const columns = hasColumns ? this.schema[t].columns ? this.schema[t];
const hasColumns = this.schema[t].columns !== undefined;
const columns = hasColumns ? this.schema[t].columns : this.schema[t];

@@ -248,6 +248,5 @@ columns[c] = s;

const hasColumns = this.schema[t].columns !== undefined
const columns = hasColumns ? this.schema[t].columns ? this.schema[t];
const hasColumns = this.schema[t].columns !== undefined;
const columns = hasColumns ? this.schema[t].columns : this.schema[t];
this.modS[t][c] = columns[c];

@@ -254,0 +253,0 @@ columns[c] = Object.assign(columns[c], s);

@@ -34,3 +34,3 @@ {

],
"version": "1.0.0-beta.19",
"version": "1.0.0-beta.20",
"engines": {

@@ -37,0 +37,0 @@ "node": ">=8.0.0"

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