db-migrate
Advanced tools
Comparing version 1.0.0-beta.19 to 1.0.0-beta.20
@@ -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" |
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
128144