Move reactions into their own table.

This commit is contained in:
Greyson Parrelli
2021-11-11 13:12:51 -05:00
committed by Cody Henthorne
parent 3a1f06f510
commit ab55fec6bd
32 changed files with 650 additions and 567 deletions

View File

@@ -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;
}