mirror of
https://github.com/astaxie/beego.git
synced 2024-11-29 17:11:29 +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' "
|
t = " DEFAULT '%s' "
|
||||||
|
|
||||||
// These defaults will be useful if there no config value orm:"default" and NOT NULL is on
|
// These defaults will be useful if there no config value orm:"default" and NOT NULL is on
|
||||||
switch fieldType {
|
switch fi.fieldType {
|
||||||
case TypeDateField:
|
case TypeDateField:
|
||||||
d = "0000-00-00"
|
d = "0000-00-00"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user