java.lang.Object | |
↳ | com.atlassian.jira.bc.dataimport.DowngradeUtil |
Static utility methods for running a database downgrade.
This is used in two separate places:
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Given a list of all upgrade History items, determine if a Downgrade should be successful.
| |||||||||||
Finds downgrade tasks that are needed to be run in order to downgrade version of JIRA to targetBuildNumber.
| |||||||||||
Reads a downgrade XML file to get a list of all the downgrades specified in this file.
| |||||||||||
Given a list of all downgrade tasks to run, and a Map of Tasks we have, verify that all required tasks are known.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Given a list of all upgrade History items, determine if a Downgrade should be successful.
upgradeHistoryItems | History of upgrades that have already run (usually comes from an import file) |
---|---|
targetBuildNumber | target build number |
Finds downgrade tasks that are needed to be run in order to downgrade version of JIRA to targetBuildNumber.
upgradeHistoryItems | History of upgrades that have already run (usually comes from an import file) |
---|---|
targetBuildNumber | build number to downgrade to |
DowngradeException |
---|
Reads a downgrade XML file to get a list of all the downgrades specified in this file.
DowngradeException |
---|
Given a list of all downgrade tasks to run, and a Map of Tasks we have, verify that all required tasks are known.
downgradeTaskNumbers | the upgrade task build numbers that we need to revert with an explicit downgrade task |
---|---|
downgradeTaskMap | map of known Downgrade tasks by build number |
MissingDowngradeTaskException | if there are upgrade tasks that we can't revert |
---|