Add unique index on message (sentTimestamp, author, thread).

This commit is contained in:
Greyson Parrelli
2023-05-09 16:14:53 -04:00
committed by Cody Henthorne
parent 93d78b3b2e
commit bef15482af
6 changed files with 234 additions and 50 deletions

View File

@@ -129,9 +129,10 @@ public class ApplicationMigrations {
static final int ACCOUNT_CONSISTENCY_CHECK = 85;
static final int BACKUP_JITTER = 86;
static final int PREKEY_SYNC = 87;
static final int DEDUPE_DB_MIGRATION = 88;
}
public static final int CURRENT_VERSION = 87;
public static final int CURRENT_VERSION = 88;
/**
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
@@ -581,6 +582,10 @@ public class ApplicationMigrations {
jobs.put(Version.PREKEY_SYNC, new PreKeysSyncMigrationJob());
}
if (lastSeenVersion < Version.DEDUPE_DB_MIGRATION) {
jobs.put(Version.DEDUPE_DB_MIGRATION, new DatabaseMigrationJob());
}
return jobs;
}