Add multilingual support, competition close/reopen, and backup directory
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user