Files
coder/coderd/database/migrations/000600_chat_messages_queued_message_id.up.sql
T
2026-09-25 09:51:25 +02:00

5 lines
380 B
SQL

ALTER TABLE chat_messages ADD COLUMN queued_message_id bigint;
COMMENT ON COLUMN chat_messages.queued_message_id IS
'ID of the chat_queued_messages row this message was promoted from. NULL when the message was not promoted from the queue, or when a version that did not record the link wrote it. Not a foreign key: promotion deletes the queued row in the same transaction.';