public interface UpgradeTask extends UpgradeTaskInfo
Don't forget the ugprade tasks are also run on backup import: Please implement BackupSupport
and declare your backward-compatibility.
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
log
All upgrade tasks should use this log for convenience, unless there's some overriding
reason to use a different log
|
| Modifier and Type | Method and Description |
|---|---|
void |
doUpgrade()
Perform the upgrade.
|
BuildNumberUpgradeConstraint |
getConstraint() |
Collection<UpgradeError> |
getErrors()
Return any errors that occur.
|
void |
validate()
Validates that this upgrade task can be performed.
|
getBuildNumber, getName, getShortDescription, isDatabaseUpgradestatic final org.slf4j.Logger log
BuildNumberUpgradeConstraint getConstraint()
void validate()
throws Exception
ExceptionCollection<UpgradeError> getErrors()
UpgradeError.UpgradeError objects, sometimes null.Copyright © 2003–2017 Atlassian. All rights reserved.