public class DowngradeWorker extends Object
Downgrade tasks are defined in downgrades.xml and each Upgrade Task must declare whether its needs a downgrade, or is a no-op.
UpgradeTask.isDowngradeTaskRequired()
Modifier and Type | Class and Description |
---|---|
static class |
DowngradeWorker.Mode
Downgrade mode.
|
Constructor and Description |
---|
DowngradeWorker(BuildUtilsInfo buildUtilsInfo,
DbConnectionManager dbConnectionManager,
OfBizDelegator ofBizDelegator,
ApplicationProperties applicationProperties,
UpgradeVersionHistoryManager upgradeVersionHistoryManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
canDowngrade() |
void |
downgrade(DowngradeWorker.Mode downgradeMode)
Called to perform special downgrade tasks.
|
void |
writeNewBuildNumbers() |
public DowngradeWorker(BuildUtilsInfo buildUtilsInfo, DbConnectionManager dbConnectionManager, OfBizDelegator ofBizDelegator, ApplicationProperties applicationProperties, UpgradeVersionHistoryManager upgradeVersionHistoryManager)
public void downgrade(DowngradeWorker.Mode downgradeMode) throws DowngradeException
This method is only invoked when we have identified that you are importing data from a newer version of JIRA, presumably because an OnDemand customer has exported JIRA data to import into their on premise instance.
DowngradeException
public void writeNewBuildNumbers()
public boolean canDowngrade() throws DowngradeException
DowngradeException
Copyright © 2002-2022 Atlassian. All Rights Reserved.