Socket
Socket
Sign inDemoInstall

db-migrate

Package Overview
Dependencies
Maintainers
1
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 0.4.0 to 0.4.1

5

CHANGELOG.md

@@ -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

1

lib/data_type.js

@@ -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';

13

lib/driver/mysql.js

@@ -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"

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