Package com.atlassian.jira.upgrade.tasks
Class UpgradeTask_Build811001
java.lang.Object
com.atlassian.jira.upgrade.AbstractUpgradeTask
com.atlassian.jira.upgrade.AbstractDelayableUpgradeTask
com.atlassian.jira.upgrade.tasks.UpgradeTask_Build811001
- All Implemented Interfaces:
UpgradeTask,com.atlassian.upgrade.spi.UpgradeTask
Upgrade task that re-implements Embedded Crowd's
https://stash.atlassian.com/projects/CWD/repos/crowd/browse/components/crowd-persistence-hibernate5/src/main/resources/liquibase/crowd_3_3_0/04_directory_attribute_value_type_migration.xml
so it does:
- remove null-valued attributes from CWD_DIRECTORY_ATTRIBUTE table and
- promote the type of CWD_DIRECTORY_ATTRIBUTE.ATTRIBUTE_VALUE to CLOB on Oracle Database
(for MySql, PostgreSQL and MsSqlServer the Entity Engine does the promotion)
- Since:
- v8.11
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.upgrade.UpgradeTask
UpgradeTask.ScheduleOption, UpgradeTask.Status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoUpgrade(boolean setupMode) Perform the upgrade.intA short (<50 chars) description of the upgrade actionbooleanFlag 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
getScheduleOptionMethods 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_Build811001
-
-
Method Details
-
getBuildNumber
public int getBuildNumber()- Returns:
- The build number that this upgrade is applicable to
-
getShortDescription
Description copied from interface:UpgradeTaskA short (<50 chars) description of the upgrade action -
doUpgrade
Description copied from interface:UpgradeTaskPerform the upgrade.- Parameters:
setupMode- Indicating this upgrade task is running during set up.- Throws:
Exception
-
isDowngradeTaskRequired
public boolean isDowngradeTaskRequired()Description copied from interface:UpgradeTaskFlag 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.
-