diff --git a/orm/cmd_utils.go b/orm/cmd_utils.go index bddada7c..c2c4cfe4 100644 --- a/orm/cmd_utils.go +++ b/orm/cmd_utils.go @@ -271,6 +271,7 @@ func getColumnDefault(fi *fieldInfo) string { TypeBigIntegerField, TypePositiveBitField, TypePositiveSmallIntegerField, TypePositiveIntegerField, TypePositiveBigIntegerField, TypeFloatField, TypeDecimalField: + t = " DEFAULT %s " d = "0" }