Class LegacyImmediateUpgradeTask

All Implemented Interfaces:
UpgradeTask, com.atlassian.upgrade.spi.UpgradeTask

public abstract class LegacyImmediateUpgradeTask extends AbstractImmediateUpgradeTask
Old upgrade tasks will extend this. They are not downgradable because they were created before the Downgrade Task framework was built.
Since:
v6.4.4
  • Constructor Details

    • LegacyImmediateUpgradeTask

      protected LegacyImmediateUpgradeTask()
  • Method Details

    • isDowngradeTaskRequired

      public boolean isDowngradeTaskRequired()
      Description copied from interface: UpgradeTask
      Flag to claim whether this upgrade task needs an explicit downgrade task to reverse the data changes in Jira-Server. Jira-Cloud always needs corresponding downgrade task.

      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.

      Returns:
      true if an actual Downgrade Task must run to revert these changes, false if downgrade is a no-op.