20 lines
734 B
SQL
20 lines
734 B
SQL
-- The old games stay inactive: the up migration does not keep their is_active, and
|
|||
|
|
-- their coin cost is still in metadata.coin_cost.
|
||
|
|
|
||
|
|
DROP INDEX IF EXISTS idx_games_org_status;
|
||
|
|
DROP INDEX IF EXISTS uq_games_org_slug;
|
||
|
|
|
||
|
|
ALTER TABLE games
|
||
|
|
DROP CONSTRAINT IF EXISTS chk_games_enakgame_identity,
|
||
|
|
DROP CONSTRAINT IF EXISTS chk_games_entry_cost,
|
||
|
|
DROP COLUMN IF EXISTS result_rules,
|
||
|
|
DROP COLUMN IF EXISTS session_ttl_seconds,
|
||
|
|
DROP COLUMN IF EXISTS entry_cost,
|
||
|
|
DROP COLUMN IF EXISTS status,
|
||
|
|
DROP COLUMN IF EXISTS version,
|
||
|
|
DROP COLUMN IF EXISTS game_url,
|
||
|
|
DROP COLUMN IF EXISTS thumbnail_url,
|
||
|
|
DROP COLUMN IF EXISTS description,
|
||
|
|
DROP COLUMN IF EXISTS slug,
|
||
|
|
DROP COLUMN IF EXISTS organization_id;
|