This commit is contained in:
lingxin 2025-01-13 10:43:51 +08:00
parent c5623e401b
commit 583a99ffe6

View File

@ -97,5 +97,6 @@ func InitDB(env string, conf DbConfig) {
}
DBS[conf.Name] = db
}
DBS[conf.Name] = DBS[conf.Name].Session(&gorm.Session{SkipDefaultTransaction: true})
//db.AutoMigrate(TaskData{}, Task{}, Version{})
}