public class UpgradeTask_Build70011 extends AbstractImmediateUpgradeTask
Historical note: This upgrade task was originally numbered 6303, but it used the wrong ID column when resolving the Quartz triggers, leading to incorrect results. The fixed upgrade task was remapped first to 6307 in the 6.3-OD-1 release and 6317 for development systems. Although the upgrade task is idempotent, it is based on the old quartz tables, which will not be updated once the data has migrated to the new ones. Therefore, we should not do anything as 6317 if the Quartz data has already been fixed in build 6307.
To further complicate matters, in JIRA 7.0, we are changing the scheduler implementation again, which means that we need to change how this upgrade task works. If 6317 was previously run, then the subscriptions have already been migrated from the QRTZ tables to the JQUARTZ tables. If not, then we will need to run this migration *after* the JQUARTZ to clusteredjob migration, as otherwise that would clobber the subscriptions when it deletes everything from clusteredjob for idempotency.
UpgradeTask.ScheduleOption, UpgradeTask.Status
Constructor and Description |
---|
UpgradeTask_Build70011(EntityEngine entityEngine,
com.atlassian.scheduler.SchedulerService schedulerService) |
Modifier and Type | Method and Description |
---|---|
String |
dependsUpon()
Return the Upgrade task id of another upgrade task that must be run prior to this task.
|
void |
doUpgrade(boolean setupMode)
Perform the upgrade.
|
String |
getBuildNumber() |
String |
getShortDescription()
A short (<50 chars) description of the upgrade action
|
boolean |
isDowngradeTaskRequired()
Flag to claim whether this upgrade task needs an explicit downgrade task to reverse the data changes.
|
getScheduleOption
addError, addErrors, addErrors, convertToSchemaTableName, getApplicationProperties, getDatabaseConnection, getDatabaseType, getDelegator, getEntityEngine, getErrors, getI18nBean, getOfBizDelegator, getReindexRequestService, getSchemaName, isMSSQL, isMYSQL, isORACLE, isPostgreSQL
public UpgradeTask_Build70011(EntityEngine entityEngine, com.atlassian.scheduler.SchedulerService schedulerService)
public String getBuildNumber()
public String getShortDescription()
UpgradeTask
public void doUpgrade(boolean setupMode) throws Exception
UpgradeTask
setupMode
- Indicating this upgrade task is running during set up.Exception
public boolean isDowngradeTaskRequired()
UpgradeTask
If a downgrade is a simple no-op then return false, and JIRA will ignore these changes during a downgrade.
If you need to actually undo the changes made here then declare true and add a Downgrade Task to the bug fix branch.
@Nullable public String dependsUpon()
UpgradeTask
dependsUpon
in interface UpgradeTask
dependsUpon
in class AbstractUpgradeTask
Copyright © 2002-2015 Atlassian. All Rights Reserved.