refactor(database): 移除GORM表选项设置
- 移除了 GORM 的 table_options 设置 - 保持数据库连接和迁移逻辑不变 - 简化了数据库配置代码main v1.0.00010
parent
bb7b3eacc7
commit
0067b7385e
|
|
@ -10,7 +10,6 @@ func SetAutoMigrate(models ...interface{}) {
|
|||
log.Error("数据库连接失败")
|
||||
return
|
||||
}
|
||||
Db = Db.Set("gorm:table_options", "ENGINE=InnoDB")
|
||||
err := Db.AutoMigrate(models...)
|
||||
if err != nil {
|
||||
log.Error("数据库迁移失败", err)
|
||||
|
|
|
|||
Loading…
Reference in New Issue