* H-337: restore widget reply delivery * H-337: harden widget conversation ownership --------- Co-authored-by: Rogee <rogee@ipao.vip>
11 lines
320 B
SQL
11 lines
320 B
SQL
UPDATE conversations
|
|
SET contact_inbox_id = NULL
|
|
WHERE EXISTS (
|
|
SELECT 1
|
|
FROM widget_conversation_contact_inbox_backfills AS backfills
|
|
WHERE backfills.conversation_id = conversations.id
|
|
AND backfills.contact_inbox_id = conversations.contact_inbox_id
|
|
);
|
|
|
|
DROP TABLE widget_conversation_contact_inbox_backfills;
|