Permalink
Browse files

defaultValue: 0 fixed. Now working :)

  • Loading branch information...
1 parent 015febc commit 1ad14b35c5f4299a2e9879d630dbf3b53fc38bb6 @corpix corpix committed Jul 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sequelize/utils.js
View
@@ -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)
}

0 comments on commit 1ad14b3

Please sign in to comment.