Class UpgradeTask_Build804000

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

public class UpgradeTask_Build804000 extends AbstractDelayableUpgradeTask
Converts timestamp of an archived project from the 'propertynumber' table to date and moves it to the 'propertydate' table. It will allow comparing the date of archiving an issue and project within a query without complicated types casting

Motivation: * For a PostgreSQL database, QueryDSL is not able to translate the timestamp to date converting correctly. It makes * it impossible to sort by an archived date when the archived date of an issue is a date and the archived date of a * project is a number.

Since:
v8.4
  • Constructor Details

  • Method Details

    • getBuildNumber

      public int getBuildNumber()
      Returns:
      The build number that this upgrade is applicable to
    • getShortDescription

      public String getShortDescription()
      Description copied from interface: UpgradeTask
      A short (<50 chars) description of the upgrade action
    • doUpgrade

      public void doUpgrade(boolean setupMode) throws Exception
      Description copied from interface: UpgradeTask
      Perform the upgrade.
      Parameters:
      setupMode - Indicating this upgrade task is running during set up.
      Throws:
      Exception
    • 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.