Add potential fix for some users in the v191 database migration.

Relates to #13034
This commit is contained in:
Greyson Parrelli 2025-01-17 11:18:35 -05:00
parent 50db945ef1
commit 69c4026f4d

View file

@ -30,6 +30,9 @@ object V191_UniqueMessageMigrationV2 : SignalDatabaseMigration {
// We're dropping it to put everyone back on the same playing field.
db.execSQL("DROP INDEX IF EXISTS message_unique_sent_from_thread")
// To aid people who may have bad old migration state
db.execSQL("INSERT INTO message_fts(message_fts) VALUES ('rebuild')")
val stopwatch = Stopwatch("migration")
// Back in the day, we used to insert expiration updates with the same timestamp as the message that triggered them. To resolve the conflict, we can just