Fix undefind variable fieldType

This commit is contained in:
supar 2014-10-17 12:56:44 +04:00
parent 4cae7af3f9
commit b00c42b3df
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ func getColumnDefault(fi *fieldInfo) string {
t = " DEFAULT '%s' "
// These defaults will be useful if there no config value orm:"default" and NOT NULL is on
switch fieldType {
switch fi.fieldType {
case TypeDateField:
d = "0000-00-00"