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

Commit ea96cb10 by corpix Committed by Sascha Depold

defaultValue: 0 fixed. Now working :)

1 parent 8cb6df21
Showing with 1 additions and 1 deletions
......@@ -88,7 +88,7 @@ var Utils = module.exports = {
if(dataType.hasOwnProperty('allowNull') && (!dataType.allowNull)) template += " NOT NULL"
if(dataType.autoIncrement) template +=" auto_increment"
if(dataType.defaultValue) {
if(dataType.defaultValue != undefined) {
template += " DEFAULT <%= defaultValue %>"
replacements.defaultValue = Utils.escape(dataType.defaultValue)
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!