feat: config presets

This commit is contained in:
2026-03-26 21:45:15 +01:00
parent efc6b72838
commit 180555c903
14 changed files with 573 additions and 0 deletions

View File

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