Improve constraints on thread and message tables.

This commit is contained in:
Greyson Parrelli
2022-12-03 12:38:25 -05:00
committed by Cody Henthorne
parent 5d9f00b268
commit 95eba78d9c
29 changed files with 789 additions and 1158 deletions

View File

@@ -111,9 +111,10 @@ public class ApplicationMigrations {
static final int SYSTEM_NAME_SYNC = 67;
static final int STORY_VIEWED_STATE = 68;
static final int STORY_READ_STATE = 69;
static final int THREAD_MESSAGE_SCHEMA_CHANGE = 70;
}
public static final int CURRENT_VERSION = 69;
public static final int CURRENT_VERSION = 70;
/**
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
@@ -491,6 +492,10 @@ public class ApplicationMigrations {
jobs.put(Version.STORY_READ_STATE, new StoryReadStateMigrationJob());
}
if (lastSeenVersion < Version.THREAD_MESSAGE_SCHEMA_CHANGE) {
jobs.put(Version.THREAD_MESSAGE_SCHEMA_CHANGE, new DatabaseMigrationJob());
}
return jobs;
}