mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 03:40:56 +01:00
Move reactions into their own table.
This commit is contained in:
committed by
Cody Henthorne
parent
3a1f06f510
commit
ab55fec6bd
@@ -89,9 +89,10 @@ public class ApplicationMigrations {
|
||||
static final int CHANGE_NUMBER_CAPABILITY = 45;
|
||||
static final int CHANGE_NUMBER_CAPABILITY_2 = 46;
|
||||
static final int DEFAULT_REACTIONS_SYNC = 47;
|
||||
static final int DB_REACTIONS_MIGRATION = 48;
|
||||
}
|
||||
|
||||
public static final int CURRENT_VERSION = 47;
|
||||
public static final int CURRENT_VERSION = 48;
|
||||
|
||||
/**
|
||||
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
|
||||
@@ -389,6 +390,10 @@ public class ApplicationMigrations {
|
||||
jobs.put(Version.DEFAULT_REACTIONS_SYNC, new StorageServiceMigrationJob());
|
||||
}
|
||||
|
||||
if (lastSeenVersion < Version.DB_REACTIONS_MIGRATION) {
|
||||
jobs.put(Version.DB_REACTIONS_MIGRATION, new DatabaseMigrationJob());
|
||||
}
|
||||
|
||||
return jobs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user