Inline GV1 auto-migration flag.

This commit is contained in:
Greyson Parrelli
2020-12-17 17:46:52 -05:00
parent 372744178e
commit f3ce582fa5
5 changed files with 12 additions and 24 deletions

View File

@@ -40,7 +40,7 @@ public class ApplicationMigrations {
private static final int LEGACY_CANONICAL_VERSION = 455;
public static final int CURRENT_VERSION = 23;
public static final int CURRENT_VERSION = 24;
private static final class Version {
static final int LEGACY = 1;
@@ -66,6 +66,7 @@ public class ApplicationMigrations {
static final int GV2_2 = 21;
static final int CDS = 22;
static final int BACKUP_NOTIFICATION = 23;
static final int GV1_MIGRATION = 24;
}
/**
@@ -276,6 +277,10 @@ public class ApplicationMigrations {
jobs.put(Version.BACKUP_NOTIFICATION, new BackupNotificationMigrationJob());
}
if (lastSeenVersion < Version.GV1_MIGRATION) {
jobs.put(Version.GV1_MIGRATION, new AttributesMigrationJob());
}
return jobs;
}