legacymigrate: ignore messages/reactions from lid users

This commit is contained in:
Tulir Asokan 2024-10-10 13:41:23 +03:00
parent 55577f17f6
commit 7c011d490c

View file

@ -121,6 +121,8 @@ DELETE FROM message_old WHERE timestamp<0;
-- only: sqlite for next 2 lines
DELETE FROM message_old WHERE rowid IN (SELECT rowid FROM pragma_foreign_key_check('message_old'));
DELETE FROM reaction_old WHERE rowid IN (SELECT rowid FROM pragma_foreign_key_check('reaction_old'));
DELETE FROM message_old WHERE sender LIKE '%@lid';
DELETE FROM reaction_old WHERE sender LIKE '%@lid';
INSERT INTO message (
bridge_id, id, part_id, mxid, room_id, room_receiver, sender_id, sender_mxid, timestamp, edit_count, metadata