mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Add unique index on message (sentTimestamp, author, thread).
This commit is contained in:
committed by
Cody Henthorne
parent
93d78b3b2e
commit
bef15482af
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user