Serializable, Comparable<MigrationState>public enum MigrationState extends Enum<MigrationState>
| Enum Constant | Description |
|---|---|
ABOVE_TARGET |
This migration has not been applied yet, and won't be applied because target is set to a lower version.
|
AVAILABLE |
This undo migration is ready to be applied if desired.
|
BASELINE |
This migration has baselined this DB.
|
BELOW_BASELINE |
This migration was not applied against this DB, because the schema history table was baselined with a higher version.
|
FAILED |
This migration failed.
|
FUTURE_FAILED |
This migration failed.
|
FUTURE_SUCCESS |
This migration succeeded.
|
IGNORED |
This usually indicates a problem.
|
MISSING_FAILED |
This migration failed.
|
MISSING_SUCCESS |
This migration succeeded.
|
OUT_OF_ORDER |
This migration succeeded.
|
OUTDATED |
This is a repeatable migration that is outdated and should be re-applied.
|
PENDING |
This migration has not been applied yet.
|
SUCCESS |
This migration succeeded.
|
SUPERSEDED |
This is a repeatable migration that is outdated and has already been superseded by a newer run.
|
UNDONE |
This versioned migration succeeded, but has since been undone.
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getDisplayName() |
|
boolean |
isApplied() |
|
boolean |
isFailed() |
|
boolean |
isResolved() |
|
static MigrationState |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static MigrationState[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MigrationState PENDING
public static final MigrationState ABOVE_TARGET
public static final MigrationState BELOW_BASELINE
public static final MigrationState BASELINE
public static final MigrationState IGNORED
This usually indicates a problem.
This migration was not applied against this DB, because a migration with a higher version has already been applied. This probably means some checkins happened out of order.
Fix by increasing the version number, run clean and migrate again or rerun migration with outOfOrder enabled.
public static final MigrationState MISSING_SUCCESS
This migration succeeded.
This migration was applied against this DB, but it is not available locally. This usually results from multiple older migration files being consolidated into a single one.
public static final MigrationState MISSING_FAILED
This migration failed.
This migration was applied against this DB, but it is not available locally. This usually results from multiple older migration files being consolidated into a single one.
This should rarely, if ever, occur in practice.
public static final MigrationState SUCCESS
public static final MigrationState UNDONE
public static final MigrationState AVAILABLE
public static final MigrationState FAILED
public static final MigrationState OUT_OF_ORDER
This migration succeeded.
This migration succeeded, but it was applied out of order. Rerunning the entire migration history might produce different results!
public static final MigrationState FUTURE_SUCCESS
This migration succeeded.
This migration has been applied against the DB, but it is not available locally. Its version is higher than the highest version available locally. It was most likely successfully installed by a future version of this deployable.
public static final MigrationState FUTURE_FAILED
This migration failed.
This migration has been applied against the DB, but it is not available locally. Its version is higher than the highest version available locally. It most likely failed during the installation of a future version of this deployable.
public static final MigrationState OUTDATED
public static final MigrationState SUPERSEDED
public static MigrationState[] values()
for (MigrationState c : MigrationState.values()) System.out.println(c);
public static MigrationState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getDisplayName()
public boolean isApplied()
public boolean isResolved()
public boolean isFailed()
Copyright © 2018. All rights reserved.