...
|
...
|
@@ -25,9 +25,11 @@ func init() { |
|
|
}
|
|
|
if !constant.DISABLE_CREATE_TABLE {
|
|
|
for _, model := range []interface{}{
|
|
|
(*models.Permission)(nil),
|
|
|
(*models.PartnerCategory)(nil),
|
|
|
(*models.UserAuth)(nil),
|
|
|
&models.Permission{},
|
|
|
&models.PartnerCategory{},
|
|
|
&models.UserAuth{},
|
|
|
&models.Goods{},
|
|
|
&models.Order{},
|
|
|
} {
|
|
|
err := DB.Model(model).CreateTable(&orm.CreateTableOptions{
|
|
|
Temp: false,
|
...
|
...
|
|