b00c42b3 by supar

Fix undefind variable fieldType

1 parent 4cae7af3
...@@ -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
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!