mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 02:10:44 +01:00
Improve constraints on thread and message tables.
This commit is contained in:
committed by
Cody Henthorne
parent
5d9f00b268
commit
95eba78d9c
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user