Files
multica/server/migrations/202_runtime_profile_add_qwen.down.sql
2026-07-21 14:55:08 +08:00

24 lines
670 B
SQL

-- Restore the pre-202 whitelist (with Grok, without Qwen Code). NOT VALID
-- keeps rollback compatible with historical rows the prior migrations allowed.
ALTER TABLE runtime_profile DROP CONSTRAINT IF EXISTS runtime_profile_protocol_family_check;
ALTER TABLE runtime_profile ADD CONSTRAINT runtime_profile_protocol_family_check
CHECK (protocol_family IN (
'claude',
'codebuddy',
'codex',
'copilot',
'opencode',
'openclaw',
'hermes',
'pi',
'cursor',
'kimi',
'kiro',
'antigravity',
'qoder',
'traecli',
'deveco',
'grok'
)) NOT VALID;