fix: table name singular

This commit is contained in:
engigu
2024-04-29 17:46:03 +08:00
parent 33e44ce596
commit 7cda4a6dbc
+2 -2
View File
@@ -43,7 +43,8 @@ func Setup() *gorm.DB {
config := &gorm.Config{
NamingStrategy: schema.NamingStrategy{
TablePrefix: setting.DatabaseSetting.TablePrefix,
TablePrefix: setting.DatabaseSetting.TablePrefix,
SingularTable: true,
},
}
@@ -61,7 +62,6 @@ func Setup() *gorm.DB {
if setting.DatabaseSetting.SqlDebug == "enable" {
db = db.Debug()
}
return db
}