Clean up bookkeeping around threads.

This commit is contained in:
Greyson Parrelli
2021-07-27 13:52:49 -04:00
committed by GitHub
parent 0478757af4
commit 7d8f780d60
23 changed files with 81 additions and 70 deletions

View File

@@ -79,9 +79,10 @@ public class ApplicationMigrations {
static final int DB_AUTOINCREMENT = 37;
static final int ATTACHMENT_CLEANUP = 38;
static final int LOG_CLEANUP = 39;
static final int ATTACHMENT_CLEANUP_2 = 40;
}
public static final int CURRENT_VERSION = 39;
public static final int CURRENT_VERSION = 40;
/**
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
@@ -347,6 +348,10 @@ public class ApplicationMigrations {
jobs.put(Version.LOG_CLEANUP, new DeleteDeprecatedLogsMigrationJob());
}
if (lastSeenVersion < Version.ATTACHMENT_CLEANUP_2) {
jobs.put(Version.ATTACHMENT_CLEANUP_2, new AttachmentCleanupMigrationJob());
}
return jobs;
}