Add migration to new KBS enclave.

This commit is contained in:
Greyson Parrelli
2022-08-24 12:05:46 -04:00
parent b57b160660
commit 716229719a
2 changed files with 18 additions and 9 deletions

View File

@@ -106,9 +106,10 @@ public class ApplicationMigrations {
static final int REFRESH_EXPIRING_CREDENTIAL = 62;
static final int EMOJI_SEARCH_INDEX_10 = 63;
static final int REFRESH_PNI_REGISTRATION_ID = 64;
static final int KBS_MIGRATION_2 = 65;
}
public static final int CURRENT_VERSION = 64;
public static final int CURRENT_VERSION = 65;
/**
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
@@ -466,6 +467,10 @@ public class ApplicationMigrations {
jobs.put(Version.REFRESH_PNI_REGISTRATION_ID, new AttributesMigrationJob());
}
if (lastSeenVersion < Version.KBS_MIGRATION_2) {
jobs.put(Version.KBS_MIGRATION_2, new KbsEnclaveMigrationJob());
}
return jobs;
}