primaryKey 大写

master v1.0.1
kanade 4 years ago
parent 00d0792072
commit ecfa69fddb

@ -45,7 +45,7 @@ func Create(db *gorm.DB, table string, path ...string) error {
}
pri := ""
if column.ColumnKey == "PRI" {
pri = "`gorm:\"primarykey\"`"
pri = "`gorm:\"primaryKey\"`"
}
comment := ""
if column.ColumnComment != "" {

Loading…
Cancel
Save