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

26 lines
760 B
SQL

-- Add Qwen Code (`qwen`) to the built-in runtime profile protocol whitelist.
-- Kept in lockstep with agent.SupportedTypes and agent.New(). NOT VALID
-- preserves the historical-row tolerance used by the prior family additions.
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',
'qwen'
)) NOT VALID;