Skip to content

Commit

Permalink
legacymigrate: fix table name
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 1, 2024
1 parent bcda88d commit e01b177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/mautrix-whatsapp/legacymigrate.sql
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ UPDATE message_old SET combined_id = chat_jid || ':' || (
) || ':' || jid;
DELETE FROM message_old WHERE timestamp<0;
-- only: sqlite for next 2 lines
DELETE FROM message WHERE rowid IN (SELECT rowid FROM pragma_foreign_key_check('message'));
DELETE FROM reaction WHERE rowid IN (SELECT rowid FROM pragma_foreign_key_check('reaction'));
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'));

INSERT INTO message (
bridge_id, id, part_id, mxid, room_id, room_receiver, sender_id, sender_mxid, timestamp, edit_count, metadata
Expand Down

0 comments on commit e01b177

Please sign in to comment.