db-migrate-base
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -0,1 +1,11 @@ | ||
<a name="1.6.1"></a> | ||
## [1.6.1](https://github.com/db-migrate/db-migrate-base/compare/v1.6.0...v1.6.1) (2019-02-11) | ||
### Bug Fixes | ||
* **bug:** wrong order for preparing spec ([a15eaad](https://github.com/db-migrate/db-migrate-base/commit/a15eaad)) | ||
<a name="1.6.0"></a> | ||
@@ -2,0 +12,0 @@ # [1.6.0](https://github.com/db-migrate/db-migrate-base/compare/v1.5.4...v1.6.0) (2019-02-11) |
11
index.js
@@ -45,3 +45,3 @@ var util = require('util'); | ||
_prepareSpec: function(spec, options, tableName, columnName) { | ||
_prepareSpec: function(columnName, spec, options, tableName) { | ||
if (spec.defaultValue.raw) { | ||
@@ -330,10 +330,5 @@ spec.defaultValue.prep = spec.defaultValue.raw; | ||
addColumn: function(tableName, columnName, columnSpec, callback) { | ||
var columnSpec = this.normalizeColumnSpec(columnSpec) | ||
var columnSpec = this.normalizeColumnSpec(columnSpec); | ||
this._prepareSpec(columnName, columnSpec, columnDefOptions, tableName); | ||
var def = this.createColumnDef( | ||
columnName, | ||
columnSpec, | ||
{}, | ||
tableName | ||
); | ||
var def = this.createColumnDef(columnName, columnSpec, {}, tableName); | ||
var extensions = ''; | ||
@@ -340,0 +335,0 @@ var self = this; |
{ | ||
"name": "db-migrate-base", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "db-migrate base driver", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
28964
105402
769