Package com.atlassian.jira.upgrade.tasks
Class UpgradeTask_Build960000
java.lang.Object
com.atlassian.jira.upgrade.AbstractUpgradeTask
com.atlassian.jira.upgrade.AbstractDelayableUpgradeTask
com.atlassian.jira.upgrade.tasks.UpgradeTask_Build960000
- All Implemented Interfaces:
UpgradeTask
,com.atlassian.upgrade.spi.UpgradeTask
Upgrade task marking issues from archived projects as archived in jiraissue table.
This is needed to improve db performance of queries fetching archivisation related data from DB.
Calculations based on projects took too long to responsively answer requests, therefore we are putting information
that issue is archived into jiraissue table.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.upgrade.UpgradeTask
UpgradeTask.ScheduleOption, UpgradeTask.Status
-
Constructor Summary
ConstructorsConstructorDescriptionUpgradeTask_Build960000
(QueryDslAccessor queryDslAccessor, ProjectManager projectManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doUpgrade
(boolean setupMode) Perform the upgrade.int
A short (invalid input: '<'50 chars) description of the upgrade actionboolean
Flag to claim whether this upgrade task needs an explicit downgrade task to reverse the data changes in Jira-Server.Methods inherited from class com.atlassian.jira.upgrade.AbstractDelayableUpgradeTask
getScheduleOption
Methods inherited from class com.atlassian.jira.upgrade.AbstractUpgradeTask
addError, addErrors, addErrors, convertToSchemaTableName, dependsUpon, getApplicationProperties, getDatabaseConnection, getDatabaseType, getDatabaseUtil, getDelegator, getEntityEngine, getErrors, getI18nBean, getOfBizDelegator, getReindexRequestService, getSchemaName, isMSSQL, isMYSQL, isORACLE, isPostgreSQL, runUpgrade
-
Constructor Details
-
UpgradeTask_Build960000
-
-
Method Details
-
getBuildNumber
public int getBuildNumber()- Returns:
- The build number that this upgrade is applicable to
-
getShortDescription
Description copied from interface:UpgradeTask
A short (invalid input: '<'50 chars) description of the upgrade action -
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.
-
doUpgrade
public void doUpgrade(boolean setupMode) Description copied from interface:UpgradeTask
Perform the upgrade.- Parameters:
setupMode
- Indicating this upgrade task is running during set up.
-