mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Ensure that pinned_order is unique.
This commit is contained in:
@@ -171,9 +171,10 @@ public class ApplicationMigrations {
|
||||
// static final int FIX_INACTIVE_GROUPS = 127;
|
||||
static final int DUPLICATE_E164_FIX = 128;
|
||||
static final int FTS_TRIGGER_FIX = 129;
|
||||
static final int THREAD_TABLE_PINNED_MIGRATION = 130;
|
||||
}
|
||||
|
||||
public static final int CURRENT_VERSION = 129;
|
||||
public static final int CURRENT_VERSION = 130;
|
||||
|
||||
/**
|
||||
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
|
||||
@@ -788,6 +789,10 @@ public class ApplicationMigrations {
|
||||
jobs.put(Version.FTS_TRIGGER_FIX, new DatabaseMigrationJob());
|
||||
}
|
||||
|
||||
if (lastSeenVersion < Version.THREAD_TABLE_PINNED_MIGRATION) {
|
||||
jobs.put(Version.THREAD_TABLE_PINNED_MIGRATION, new DatabaseMigrationJob());
|
||||
}
|
||||
|
||||
return jobs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user