From 7fbaf8289738a075b394fd6c22410a935eb54125 Mon Sep 17 00:00:00 2001 From: astaxie Date: Mon, 4 Jan 2016 22:10:18 +0800 Subject: [PATCH] fix #1424 --- orm/cmd_utils.go | 1 + 1 file changed, 1 insertion(+) 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" }