ALTER TABLE matches ADD COLUMN IF NOT EXISTS source_key VARCHAR(50); CREATE INDEX IF NOT EXISTS idx_matches_source_key ON matches(source_key);