Commit b00c42b3 authored by supar's avatar supar

Fix undefind variable fieldType

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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment