Fix full text search migration after table name change.

This commit is contained in:
Greyson Parrelli
2023-01-26 18:59:30 -05:00
parent 22a4271dfb
commit fe40e37da4
6 changed files with 87 additions and 32 deletions

View File

@@ -117,9 +117,10 @@ public class ApplicationMigrations {
static final int UPDATE_SMS_JOBS = 73;
static final int OPTIMIZE_MESSAGE_FTS_INDEX = 74;
static final int REACTION_DATABASE_MIGRATION = 75;
static final int REBUILD_MESSAGE_FTS_INDEX_2 = 76;
}
public static final int CURRENT_VERSION = 75;
public static final int CURRENT_VERSION = 76;
/**
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
@@ -521,6 +522,10 @@ public class ApplicationMigrations {
jobs.put(Version.REACTION_DATABASE_MIGRATION, new DatabaseMigrationJob());
}
if (lastSeenVersion < Version.REBUILD_MESSAGE_FTS_INDEX_2) {
jobs.put(Version.REBUILD_MESSAGE_FTS_INDEX_2, new RebuildMessageSearchIndexMigrationJob());
}
return jobs;
}