b00c42b3 by supar

Fix undefind variable fieldType

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