db-migrate
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -124,1 +124,6 @@ ## 0.1.0 | ||
- Fixed typo in lib/driver/pg.js for BLOB datatype #76 | ||
## 0.4.1 | ||
Improvement: | ||
- Add support for BIGINT data type #81 |
@@ -5,2 +5,3 @@ module.exports = { | ||
INTEGER: 'int', | ||
BIG_INTEGER: 'bigint', | ||
REAL: 'real', | ||
@@ -7,0 +8,0 @@ DATE_TIME: 'datetime', |
@@ -27,2 +27,4 @@ var util = require('util'); | ||
return 'INTEGER'; | ||
case type.BIG_INTEGER: | ||
return 'BIGINT'; | ||
case type.DATE_TIME: | ||
@@ -29,0 +31,0 @@ return 'INTEGER'; |
@@ -17,4 +17,2 @@ var util = require('util'); | ||
switch(spec.type) { | ||
case type.STRING: | ||
return 'VARCHAR'; | ||
case type.TEXT: | ||
@@ -32,8 +30,4 @@ len = parseInt(spec.length) || 1000; | ||
return 'TINYTEXT'; | ||
case type.INTEGER: | ||
return 'INTEGER'; | ||
case type.DATE_TIME: | ||
return 'DATETIME'; | ||
case type.REAL: | ||
return 'REAL'; | ||
case type.BLOB: | ||
@@ -51,11 +45,6 @@ len = parseInt(spec.length) || 1000; | ||
return 'TINYBLOB'; | ||
case type.TIMESTAMP: | ||
return 'TIMESTAMP'; | ||
case type.BINARY: | ||
return 'BINARY'; | ||
case type.BOOLEAN: | ||
return 'TINYINT(1)'; | ||
default: | ||
throw new Error('Invalid data type ' + spec.type); | ||
} | ||
return this._super(spec.type); | ||
}, | ||
@@ -62,0 +51,0 @@ |
@@ -14,3 +14,3 @@ { | ||
], | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"engines": { | ||
@@ -17,0 +17,0 @@ "node": ">=0.6.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
74387
1507