1
0
镜像自地址 https://github.com/astaxie/beego.git 已同步 2025-09-16 14:42:09 +00:00
这个提交包含在:
slene
2014-03-19 09:46:09 +08:00
父节点 50bc1ef757
当前提交 a879e412a1
共有 2 个文件被更改,包括 1 次插入2 次删除

查看文件

@@ -194,7 +194,7 @@ type User struct {
UserName string `orm:"size(30);unique"`
Email string `orm:"size(100)"`
Password string `orm:"size(100)"`
Status int16
Status int16 `orm:"column(Status)"`
IsStaff bool
IsActive bool `orm:"default(1)"`
Created time.Time `orm:"auto_now_add;type(date)"`

查看文件

@@ -80,7 +80,6 @@ func getTableUnique(val reflect.Value) [][]string {
// get snaked column name
func getColumnName(ft int, addrField reflect.Value, sf reflect.StructField, col string) string {
col = strings.ToLower(col)
column := col
if col == "" {
column = snakeString(sf.Name)