mirror of
https://github.com/Such-Software/wownerogue.git
synced 2026-10-24 09:38:32 +02:00
11 lines
498 B
SQL
11 lines
498 B
SQL
-- Persist the operator-selected gameplay ruleset independently from the coarse legacy
|
|
-- matches.variant ('race'/'pvp'). Existing rows are classic races; new built-ins such as
|
|
-- score-attack and coop-escape remain fully auditable without widening money/economy keys.
|
|
|
|
ALTER TABLE matches
|
|
ADD COLUMN IF NOT EXISTS ruleset_id VARCHAR(64) NOT NULL DEFAULT 'race';
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_matches_ruleset_finished
|
|
ON matches (ruleset_id, ended_at DESC)
|
|
WHERE status = 'finished';
|