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

Commit 977d6262 by Sascha Depold

Apply allowNull even if column is a primaryKey

1 parent 3a40d1c9
Showing with 1 additions and 1 deletions
...@@ -276,7 +276,7 @@ module.exports = (function() { ...@@ -276,7 +276,7 @@ module.exports = (function() {
} }
} }
if (dataType.hasOwnProperty('allowNull') && !dataType.allowNull && !dataType.primaryKey) { if (dataType.hasOwnProperty('allowNull') && !dataType.allowNull) {
template += " NOT NULL"; template += " NOT NULL";
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!