Files
esports/scripts/migrations/0009-match-lobby-kind.sql

5 lines
265 B
SQL

-- Matches now remember where their lobby lives. Simulated lobbies are numbered
-- from 2,090,000,000 up, far above real osu! match ids.
UPDATE match SET config = config || '{"lobby":"simulator"}'::jsonb
WHERE osu_lobby_id >= 2000000000 AND NOT (config ? 'lobby');