Comparing version 0.1.4 to 0.1.5
{ | ||
"name": "jqueue", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "MySQL backed plugable Node.js job queue based on the Beanstalk Job Lifecycle", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
@@ -27,6 +27,8 @@ var Queue = require('./queue'); | ||
function createNewQueue(queueName, isMemory, cb) { | ||
var storageEngine; | ||
var storageEngine, dataType; | ||
if (isMemory) { | ||
dataType = 'VARCHAR(21800)'; | ||
storageEngine = 'MEMORY'; | ||
} else { | ||
dataType = 'TEXT'; | ||
storageEngine = 'MyISAM'; | ||
@@ -37,3 +39,3 @@ } | ||
status ENUM(\'ready\', \'reserved\', \'buried\') NOT NULL,\ | ||
data VARCHAR(21800) NOT NULL,\ | ||
data ?? NOT NULL,\ | ||
priority TINYINT NOT NULL,\ | ||
@@ -43,3 +45,3 @@ date_time TIMESTAMP NOT NULL,\ | ||
version INT NULL DEFAULT NULL,\ | ||
PRIMARY KEY (id)) ENGINE = ??', [queueName, storageEngine], cb); | ||
PRIMARY KEY (id)) ENGINE = ??', [queueName, dataType, storageEngine], cb); | ||
} | ||
@@ -46,0 +48,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
54395
1361