Add multilingual support, competition close/reopen, and backup directory

This commit is contained in:
Jan Meinl
2026-05-17 09:18:34 +02:00
parent bb9f3cd3eb
commit 777f11d93c
18 changed files with 1039 additions and 433 deletions
+2
View File
@@ -92,6 +92,8 @@ func migrate() error {
addColumns := []string{
`ALTER TABLE users ADD COLUMN must_change_password INTEGER NOT NULL DEFAULT 0`,
`ALTER TABLE competitions ADD COLUMN rules_language TEXT NOT NULL DEFAULT 'en'`,
`ALTER TABLE competitions ADD COLUMN closed INTEGER NOT NULL DEFAULT 0`,
`ALTER TABLE competitions ADD COLUMN closed_at TEXT NOT NULL DEFAULT ''`,
}
for _, s := range addColumns {
// Ignore "duplicate column" errors so the migration is idempotent.