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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.void
Perform the upgrade.boolean
boolean
This 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, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.upgrade.UpgradeTask
getConstraint, getErrors, validate
Methods inherited from interface com.atlassian.confluence.upgrade.UpgradeTaskInfo
getName, getShortDescription
-
Field Details
-
BUILD_NUMBER
- See Also:
-
-
Constructor Details
-
LabelUniqueIndexUpgradeTask
-
-
Method Details
-
getBuildNumber
- Specified by:
getBuildNumber
in interfaceUpgradeTaskInfo
- Overrides:
getBuildNumber
in classAbstractUpgradeTask
- Returns:
- The build number that this upgrade is applicable to
-
isDatabaseUpgrade
public boolean isDatabaseUpgrade()- Specified by:
isDatabaseUpgrade
in interfaceUpgradeTaskInfo
- Overrides:
isDatabaseUpgrade
in classAbstractUpgradeTask
-
doUpgrade
Description copied from interface:UpgradeTask
Perform the upgrade.- Specified by:
doUpgrade
in 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:
runOnSpaceImport
in 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:
breaksBackwardCompatibility
in interfaceBackupSupport
- Returns:
- false
-