mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 17:40:55 +00:00
Fix undefind variable fieldType
This commit is contained in:
parent
4cae7af3f9
commit
b00c42b3df
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user