不要怂,就是干,撸起袖子干!

Commit 68717757 by Mick Hansen

Merge pull request #4069 from wilsonianb/fix/uuidv1

Add check for UUIDV1 defaultValue
2 parents 6f7200c0 8f6ecec4
Showing with 1 additions and 1 deletions
...@@ -90,7 +90,7 @@ QueryInterface.prototype.createTable = function(tableName, attributes, options) ...@@ -90,7 +90,7 @@ QueryInterface.prototype.createTable = function(tableName, attributes, options)
if (attribute.hasOwnProperty('defaultValue')) { if (attribute.hasOwnProperty('defaultValue')) {
if (typeof attribute.defaultValue === 'function' && ( if (typeof attribute.defaultValue === 'function' && (
attribute.defaultValue === DataTypes.NOW || attribute.defaultValue === DataTypes.NOW ||
attribute.defaultValue === DataTypes.UUIDV4 || attribute.defaultValue === DataTypes.UUIDV1 ||
attribute.defaultValue === DataTypes.UUIDV4 attribute.defaultValue === DataTypes.UUIDV4
)) { )) {
attribute.defaultValue = new attribute.defaultValue(); attribute.defaultValue = new attribute.defaultValue();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!