public class SetAttachmentStorageSettingForClustersUpgradeTask extends AbstractUpgradeTask implements DatabaseUpgradeTask
Setting the attachmentDataStore to be
ConfluenceHomeGlobalConstants.ATTACHMENT_STORAGE_DATABASE
.
This is because prior to this release, clusters were hard coded to use the
database for attachment storage, and this setting was ignored. This task
will ensure the setting is set to the correct value.
Constructor and Description |
---|
SetAttachmentStorageSettingForClustersUpgradeTask(ClusterConfigurationHelper clusterConfigurationHelper,
SettingsManager settingsManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
breaksBackwardCompatibility()
Attachment storage location setting has not effect on exports/imports
|
void |
doUpgrade()
Perform the upgrade.
|
String |
getBuildNumber() |
boolean |
runOnSpaceImport()
This doesn't apply to spaces.
|
addAllErrors, addError, addError, getConstraint, getErrors, getName, getShortDescription, isDatabaseUpgrade, setBeanName, setBuildNumber, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConstraint, getErrors, validate
getName, getShortDescription, isDatabaseUpgrade
public SetAttachmentStorageSettingForClustersUpgradeTask(ClusterConfigurationHelper clusterConfigurationHelper, SettingsManager settingsManager)
public String getBuildNumber()
getBuildNumber
in interface UpgradeTaskInfo
getBuildNumber
in class AbstractUpgradeTask
public void doUpgrade() throws Exception
UpgradeTask
doUpgrade
in interface UpgradeTask
Exception
public boolean runOnSpaceImport()
runOnSpaceImport
in interface BackupSupport
public boolean breaksBackwardCompatibility()
breaksBackwardCompatibility
in interface BackupSupport
Copyright © 2003–2017 Atlassian. All rights reserved.