Files
coder/coderd/database/migrations/000478_chat_queued_message_model_config.up.sql
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
226 B
SQL
Raw Normal View History

ALTER TABLE chat_queued_messages
ADD COLUMN model_config_id uuid;
UPDATE chat_queued_messages AS cqm
SET model_config_id = chats.last_model_config_id
FROM chats
WHERE chats.id = cqm.chat_id
AND cqm.model_config_id IS NULL;