public class UpgradeTask_Build73010 extends Object implements com.atlassian.upgrade.spi.UpgradeTask
With the implementation of the new upgrade task framework we will begin to use a new table UpgradeTaskHistory to store all of the entries for the Upgrades. To simplify the implementation of the new framework, when we complete a new entry we always put it in the new table. However, this new framework could be used to run old upgrade tasks that were made before this new framework. In this case we want to make sure that all of these upgrade tasks completion go into the old table.
A sample scenario for this UpgradeTask is in the case of importing data with the following information in the UpgradeHistory table:
We need to run all upgrade tasks, e.g. to 74000, and it will use the new upgrade framework. All upgrades run will be placed into the UpgradeTaskHistory table like so:
At this point we want to move all upgrade tasks before 73010 to the old table. The result would be the following for the UpgradeHistoryTable:
And the following content would be in the new UpgradeTaskHistory table:
Any more upgrade tasks after this would be kept in the new UpgradeTaskTable.
Constructor and Description |
---|
UpgradeTask_Build73010(QueryDslAccessor queryDslAccessor) |
Modifier and Type | Method and Description |
---|---|
int |
getBuildNumber() |
String |
getShortDescription() |
void |
runUpgrade(com.atlassian.upgrade.api.UpgradeContext upgradeContext) |
public UpgradeTask_Build73010(QueryDslAccessor queryDslAccessor)
public int getBuildNumber()
getBuildNumber
in interface com.atlassian.upgrade.spi.UpgradeTask
public String getShortDescription()
getShortDescription
in interface com.atlassian.upgrade.spi.UpgradeTask
public void runUpgrade(com.atlassian.upgrade.api.UpgradeContext upgradeContext)
runUpgrade
in interface com.atlassian.upgrade.spi.UpgradeTask
Copyright © 2002-2021 Atlassian. All Rights Reserved.