Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Fix SQLite db migration. Fixes mautrix#454
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Feb 16, 2024
1 parent 1d6ea9d commit 616c227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/upgrades/17-refactor-sqlite.sql
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ CREATE TABLE reaction_new (


DELETE FROM message
WHERE (sender, timestamp, part_index, signal_receiver)
IN (SELECT sender, timestamp, part_index, signal_receiver FROM message GROUP BY sender, timestamp, part_index, signal_receiver HAVING COUNT(*)>1);
WHERE (sender, timestamp, signal_receiver)
IN (SELECT sender, timestamp, signal_receiver FROM message GROUP BY sender, timestamp, signal_receiver HAVING COUNT(*)>1);

INSERT INTO message_new
SELECT sender,
Expand Down

0 comments on commit 616c227

Please sign in to comment.