feat: config presets
This commit is contained in:
@@ -55,6 +55,7 @@ func Migrate(db *gorm.DB) {
|
||||
&model.LeaderboardResult{},
|
||||
&model.LeaderboardPointRow{},
|
||||
&model.ActivityLog{},
|
||||
&model.ConfigPreset{},
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
@@ -85,6 +86,10 @@ func runMigrations(db *gorm.DB) {
|
||||
logging.Error("Failed to run activity log migration: %v", err)
|
||||
}
|
||||
|
||||
if err := migrations.RunAddConfigPresetsMigration(db); err != nil {
|
||||
logging.Error("Failed to run config presets migration: %v", err)
|
||||
}
|
||||
|
||||
logging.Info("Custom database migrations completed")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user