8 lines
342 B
SQL
8 lines
342 B
SQL
DROP INDEX IF EXISTS idx_conversations_account_display_id;
|
|
CREATE INDEX idx_conversations_account_display_id
|
|
ON conversations(account_id, display_id)
|
|
WHERE deleted_at IS NULL;
|
|
|
|
-- Repaired display IDs are intentionally retained: their previous duplicate
|
|
-- values cannot be restored without reintroducing ambiguous conversation URLs.
|