1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-02 13:13:28 +00:00

Fix undefind variable fieldType

This commit is contained in:
supar 2014-10-17 12:56:44 +04:00
parent 4cae7af3f9
commit b00c42b3df

View File

@ -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"