Comparing version 1.0.1 to 1.0.2
@@ -80,2 +80,3 @@ var async = require('async'); | ||
ifNotExist:true, | ||
autoIncrement:true, | ||
dest:'./data.sql', | ||
@@ -124,3 +125,5 @@ } | ||
var r = data[i][0]['Create Table']+";"; | ||
resp.push(options.ifNotExist ? r.replace(/CREATE TABLE `/,'CREATE TABLE IF NOT EXISTS `') : r) | ||
if(options.ifNotExist) r = r.replace(/CREATE TABLE `/,'CREATE TABLE IF NOT EXISTS `'); | ||
if(!options.autoIncrement) r = r.replace(/AUTO_INCREMENT=\d+ /g,''); | ||
resp.push(r) | ||
} | ||
@@ -127,0 +130,0 @@ callback(err,resp); |
{ | ||
"name": "mysqldump", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Create a DUMP from MySQL", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
10753
6
143