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

Commit 8f6ecec4 by wilsonianb

Add check for UUIDV1 defaultValue

1 parent c0795cf0
Showing with 1 additions and 1 deletions
......@@ -90,7 +90,7 @@ QueryInterface.prototype.createTable = function(tableName, attributes, options)
if (attribute.hasOwnProperty('defaultValue')) {
if (typeof attribute.defaultValue === 'function' && (
attribute.defaultValue === DataTypes.NOW ||
attribute.defaultValue === DataTypes.UUIDV4 ||
attribute.defaultValue === DataTypes.UUIDV1 ||
attribute.defaultValue === DataTypes.UUIDV4
)) {
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!