1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-11 08:50:39 +00:00

Merge branch 'develop' of https://github.com/astaxie/beego into add_sql_null_support

This commit is contained in:
zav8
2018-12-18 10:41:17 +08:00
5 changed files with 329 additions and 1 deletions

View File

@ -301,7 +301,7 @@ checkType:
fi.sf = sf
fi.fullName = mi.fullName + mName + "." + sf.Name
fi.description = sf.Tag.Get("description")
fi.description = tags["description"]
fi.null = attrs["null"]
fi.index = attrs["index"]
fi.auto = attrs["auto"]

View File

@ -44,6 +44,7 @@ var supportTag = map[string]int{
"decimals": 2,
"on_delete": 2,
"type": 2,
"description": 2,
}
// get reflect.Type name with package path.