Files
DS4Server/migrations/20260905090000_allow_qwen_session_model/down.sql
Georg Bauer b99ce2aa10
Some checks failed
Weekly OSV dependency audit / dependency-audit (push) Failing after 5s
fix for stats and model selection
2026-09-05 08:17:07 +02:00

14 lines
451 B
SQL

ALTER TABLE sessions ADD COLUMN model_without_qwen TEXT
CHECK (model_without_qwen IS NULL OR model_without_qwen IN (
'deepseek-v4-flash-0731',
'deepseek-v4-pro',
'glm-5.2',
'glm-5.3-flash'
));
UPDATE sessions SET model_without_qwen = CASE
WHEN model = 'qwen3.8-flash-next' THEN NULL
ELSE model
END;
ALTER TABLE sessions DROP COLUMN model;
ALTER TABLE sessions RENAME COLUMN model_without_qwen TO model;