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.3.0 to 0.3.1

5

CHANGELOG.md

@@ -102,1 +102,6 @@ ## 0.1.0

- Added dry-run support for migrations #55 (via @joeferner)
## 0.3.1
Improvement:
- Added support for boolean data type #66 (via @trojanowski)

3

lib/data_type.js

@@ -9,3 +9,4 @@ module.exports = {

TIMESTAMP: 'timestamp',
BINARY: 'binary'
BINARY: 'binary',
BOOLEAN: 'boolean'
};

@@ -37,2 +37,4 @@ var util = require('util');

return 'BINARY';
case type.BOOLEAN:
return 'BOOLEAN';
default:

@@ -39,0 +41,0 @@ var unknownType = str.toUpperCase();

@@ -53,2 +53,4 @@ var util = require('util');

return 'BINARY';
case type.BOOLEAN:
return 'TINYINT(1)';
default:

@@ -55,0 +57,0 @@ throw new Error('Invalid data type ' + str);

@@ -14,3 +14,3 @@ {

],
"version": "0.3.0",
"version": "0.3.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