refactor(database): 移除GORM表选项设置

- 移除了 GORM 的 table_options 设置
- 保持数据库连接和迁移逻辑不变
- 简化了数据库配置代码
main v1.0.00010
black1552 2026-02-03 14:45:04 +08:00
parent bb7b3eacc7
commit 0067b7385e
1 changed files with 0 additions and 1 deletions

View File

@ -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)