Add migration to repair missing FTS triggers.

This commit is contained in:
Greyson Parrelli
2025-02-04 11:31:00 -05:00
parent 6a884ba678
commit d8116c60c1
3 changed files with 121 additions and 3 deletions

View File

@@ -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;
}