Files
ironclaw/migrations/V15__conversation_source_channel.sql
Illia Polosukhin 3974163e00 fix(db): keep V15=conversation_source_channel to match production PG (#1928)
Production PostgreSQL already has V15__conversation_source_channel applied.
Renumber to match: V15=conversation_source_channel, V16=user_identities,
V17=document_versions. Update libSQL incremental migrations and idempotent
list to match. The V15 repair still handles databases that mis-recorded
V15 as "document_versions".

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 12:06:21 -07:00

5 lines
264 B
SQL

-- Add source_channel to conversations for cross-channel approval authorization.
-- Tracks which channel originally created a conversation so that approval
-- messages from other channels can be validated.
ALTER TABLE conversations ADD COLUMN source_channel TEXT;