public class UpgradeTaskForTesting extends AbstractUpgradeTask
UpgradeTask.ScheduleOption, UpgradeTask.Status
Modifier and Type | Field and Description |
---|---|
static String |
SYSTEM_PROPERTY_NAME |
Constructor and Description |
---|
UpgradeTaskForTesting(ReindexRequestService reindexRequestService) |
Modifier and Type | Method and Description |
---|---|
void |
doUpgrade(boolean setupMode)
Perform the upgrade.
|
String |
getBuildNumber() |
UpgradeTask.ScheduleOption |
getScheduleOption()
Return when this upgrade task can be scheduled.
|
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.
|
addError, addErrors, addErrors, convertToSchemaTableName, dependsUpon, getApplicationProperties, getDatabaseConnection, getDatabaseType, getDelegator, getEntityEngine, getErrors, getI18nBean, getOfBizDelegator, getReindexRequestService, getSchemaName, isMSSQL, isMYSQL, isORACLE, isPostgreSQL
public static final String SYSTEM_PROPERTY_NAME
public UpgradeTaskForTesting(ReindexRequestService reindexRequestService)
public String getShortDescription()
UpgradeTask
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.
public String getBuildNumber()
public void doUpgrade(boolean setupMode) throws Exception
UpgradeTask
setupMode
- Indicating this upgrade task is running during set up.Exception
public UpgradeTask.ScheduleOption getScheduleOption()
UpgradeTask
Copyright © 2002-2015 Atlassian. All Rights Reserved.