orm: fix golint

This commit is contained in:
miraclesu
2016-04-09 10:22:40 +08:00
parent e95bef1331
commit 99f1e6c8b5
6 changed files with 59 additions and 53 deletions

View File

@@ -90,7 +90,7 @@ checkColumn:
} else {
col = fmt.Sprintf(s, fi.digits, fi.decimals)
}
case TypeJsonField:
case TypeJSONField:
if al.Driver != DRPostgres {
fieldType = TypeCharField
goto checkColumn
@@ -290,7 +290,7 @@ func getColumnDefault(fi *fieldInfo) string {
case TypeBooleanField:
t = " DEFAULT %s "
d = "FALSE"
case TypeJsonField, TypeJsonbField:
case TypeJSONField, TypeJsonbField:
d = "{}"
}