mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Add migration to repair missing FTS triggers.
This commit is contained in:
@@ -170,9 +170,10 @@ public class ApplicationMigrations {
|
||||
static final int SSRE2_CAPABILITY = 126;
|
||||
// static final int FIX_INACTIVE_GROUPS = 127;
|
||||
static final int DUPLICATE_E164_FIX = 128;
|
||||
static final int FTS_TRIGGER_FIX = 129;
|
||||
}
|
||||
|
||||
public static final int CURRENT_VERSION = 128;
|
||||
public static final int CURRENT_VERSION = 129;
|
||||
|
||||
/**
|
||||
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
|
||||
@@ -783,6 +784,10 @@ public class ApplicationMigrations {
|
||||
jobs.put(Version.DUPLICATE_E164_FIX, new DuplicateE164MigrationJob());
|
||||
}
|
||||
|
||||
if (lastSeenVersion < Version.FTS_TRIGGER_FIX) {
|
||||
jobs.put(Version.FTS_TRIGGER_FIX, new DatabaseMigrationJob());
|
||||
}
|
||||
|
||||
return jobs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user