Class LabelUniqueIndexUpgradeTask
java.lang.Object
com.atlassian.confluence.upgrade.AbstractUpgradeTask
com.atlassian.confluence.upgrade.upgradetask.LabelUniqueIndexUpgradeTask
- All Implemented Interfaces:
BackupSupport,DatabaseUpgradeTask,UpgradeTask,UpgradeTaskInfo,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
This task adds a unique constraint on columns NAME, OWNER and NAMESPACE in LABEL table.
- Since:
- 9.1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe old lack of virtual column and index didn't require anything of the data, as both of them can be generated from the existing data.voidPerform the upgrade.booleanbooleanThis doesn't run on import for a site import, so doesn't need to run on space import either.Methods inherited from class com.atlassian.confluence.upgrade.AbstractUpgradeTask
addAllErrors, addError, addError, getConstraint, getErrors, getName, getShortDescription, setBeanName, setBuildNumber, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.upgrade.UpgradeTask
getConstraint, getErrors, validateMethods inherited from interface com.atlassian.confluence.upgrade.UpgradeTaskInfo
getName, getShortDescription
-
Field Details
-
BUILD_NUMBER
- See Also:
-
SKIP_LABEL_UNIQUE_INDEX_UPGRADE_TASK
- See Also:
-
-
Constructor Details
-
LabelUniqueIndexUpgradeTask
-
-
Method Details
-
getBuildNumber
- Specified by:
getBuildNumberin interfaceUpgradeTaskInfo- Overrides:
getBuildNumberin classAbstractUpgradeTask- Returns:
- The build number that this upgrade is applicable to
-
isDatabaseUpgrade
public boolean isDatabaseUpgrade()- Specified by:
isDatabaseUpgradein interfaceUpgradeTaskInfo- Overrides:
isDatabaseUpgradein classAbstractUpgradeTask
-
doUpgrade
Description copied from interface:UpgradeTaskPerform the upgrade.- Specified by:
doUpgradein interfaceUpgradeTask- Throws:
Exception
-
runOnSpaceImport
public boolean runOnSpaceImport()This doesn't run on import for a site import, so doesn't need to run on space import either.- Specified by:
runOnSpaceImportin interfaceBackupSupport- Returns:
- false
-
breaksBackwardCompatibility
public boolean breaksBackwardCompatibility()The old lack of virtual column and index didn't require anything of the data, as both of them can be generated from the existing data.- Specified by:
breaksBackwardCompatibilityin interfaceBackupSupport- Returns:
- false
-