-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(history): Heal duplicate peer entries with different case
Prior to 2f4e8dc we would take the written ToxID and insert that straight into history without any case check Must be done prior to schema 11 since even though the UNIQUE constraint on the peers table is fooled by the different case, the UNIQUE constraint on the new chats and authors table which are stored as BLOBS fail during upgrade when the two different case but equal ToxPks collide. Unfortunately it can't be done as its own upgrade since 11 was already merged, and this is a prerequisite for 11 to pass for some users. Execute prior to starting the split peer upgrade instead of as a larger transaction for simplicity of the split upgrade, and since executing this deduplication is idempotent.
- Loading branch information
1 parent
69d07f0
commit 9a8706a
Showing
3 changed files
with
63 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters