public class LikesSqlConstraintsUpgradeTask extends Object implements UpgradeTask, DatabaseUpgradeTask, BackupSupport
log
Constructor and Description |
---|
LikesSqlConstraintsUpgradeTask(AlterTableExecutor alterTableExecutor) |
Modifier and Type | Method and Description |
---|---|
boolean |
breaksBackwardCompatibility()
The old lack of constraint didn't required anything of the data.
|
void |
doUpgrade()
Perform the upgrade.
|
String |
getBuildNumber() |
BuildNumberUpgradeConstraint |
getConstraint() |
Collection<UpgradeError> |
getErrors()
Return any errors that occur.
|
String |
getName()
The human-readable name of the upgrade task
|
String |
getShortDescription()
A short (<50 chars) description of the upgrade action
|
boolean |
isDatabaseUpgrade() |
boolean |
runOnSpaceImport()
This doesn't run on import for a site import, so doesn't need to run on space import either.
|
void |
validate()
Validates that this upgrade task can be performed.
|
public LikesSqlConstraintsUpgradeTask(AlterTableExecutor alterTableExecutor)
public String getBuildNumber()
getBuildNumber
in interface UpgradeTaskInfo
public BuildNumberUpgradeConstraint getConstraint()
getConstraint
in interface UpgradeTask
public String getShortDescription()
UpgradeTaskInfo
getShortDescription
in interface UpgradeTaskInfo
public boolean isDatabaseUpgrade()
isDatabaseUpgrade
in interface UpgradeTaskInfo
public void doUpgrade() throws Exception
UpgradeTask
doUpgrade
in interface UpgradeTask
Exception
public void validate() throws Exception
UpgradeTask
validate
in interface UpgradeTask
Exception
public Collection<UpgradeError> getErrors()
UpgradeTask
UpgradeError
.getErrors
in interface UpgradeTask
UpgradeError
objects, sometimes null.public boolean runOnSpaceImport()
runOnSpaceImport
in interface BackupSupport
public boolean breaksBackwardCompatibility()
breaksBackwardCompatibility
in interface BackupSupport
public String getName()
UpgradeTaskInfo
getName
in interface UpgradeTaskInfo
Copyright © 2003–2016 Atlassian. All rights reserved.