mirror of
https://github.com/astaxie/beego.git
synced 2025-06-12 00:30:40 +00:00
Merge branch 'master' into develop
This commit is contained in:
@ -148,6 +148,10 @@ func getDbCreateSql(al *alias) (sqls []string, tableIndexes map[string][]dbIndex
|
||||
column += " " + "NOT NULL"
|
||||
}
|
||||
|
||||
if fi.initial.String() != "" {
|
||||
column += " DEFAULT " + fi.initial.String()
|
||||
}
|
||||
|
||||
if fi.unique {
|
||||
column += " " + "UNIQUE"
|
||||
}
|
||||
|
Reference in New Issue
Block a user