fix: preserve Chatwoot message visibility and identity
This commit is contained in:
4
migrations/010_chatwoot_ingestion_identity.sql
Normal file
4
migrations/010_chatwoot_ingestion_identity.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
-- Canonical message identity for replay-safe Chatwoot ingestion.
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS ux_messages_source_event
|
||||
ON messages(source_system, source_event_id)
|
||||
WHERE source_event_id IS NOT NULL;
|
||||
Reference in New Issue
Block a user