Add foreign key dependency between reactions and messages.

This commit is contained in:
Greyson Parrelli
2023-01-26 14:45:03 -05:00
parent c5c60b7214
commit 9b28585c59
7 changed files with 64 additions and 19 deletions

View File

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