-- Add research_enabled toggle to tournament configuration
-- This allows admins to disable the tech tree requirement for tournaments

-- Add research_enabled column to tournament_config table
ALTER TABLE tournament_config
ADD COLUMN research_enabled TINYINT(1) DEFAULT 1 COMMENT 'Toggle for research requirement. 0=All tech unlocked, 1=Normal research required'
AFTER turn_protection;

-- Update any existing tournaments to have research enabled by default
UPDATE tournament_config SET research_enabled = 1 WHERE research_enabled IS NULL;