Fix undefind variable fieldType
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -257,7 +257,7 @@ func getColumnDefault(fi *fieldInfo) string { | ... | @@ -257,7 +257,7 @@ func getColumnDefault(fi *fieldInfo) string { |
| 257 | t = " DEFAULT '%s' " | 257 | t = " DEFAULT '%s' " |
| 258 | 258 | ||
| 259 | // These defaults will be useful if there no config value orm:"default" and NOT NULL is on | 259 | // These defaults will be useful if there no config value orm:"default" and NOT NULL is on |
| 260 | switch fieldType { | 260 | switch fi.fieldType { |
| 261 | case TypeDateField: | 261 | case TypeDateField: |
| 262 | d = "0000-00-00" | 262 | d = "0000-00-00" |
| 263 | 263 | ... | ... |
-
Please register or sign in to post a comment