Enum MigrationState
- All Implemented Interfaces:
Comparable<MigrationState>
Where one migration stands, as reported by
Migrator.info().-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAbove the configured target version.The baseline marker: everything up to this version is taken as already present.At or below the baseline, so it is never applied.Applied and failed; the database may hold half of it.Applied by a newer build: its version is above everything this build carries.Not applied, and older than the newest applied version.Applied, and no longer carried by this build.A repeatable migration whose script changed since it last ran.Carried by this build and not applied yet.Applied.An earlier run of a repeatable migration that a later run replaced. -
Method Summary
Modifier and TypeMethodDescriptionstatic MigrationStateReturns 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.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
PENDING
Carried by this build and not applied yet. -
SUCCESS
Applied. -
FAILED
Applied and failed; the database may hold half of it. -
BASELINE
The baseline marker: everything up to this version is taken as already present. -
BELOW_BASELINE
At or below the baseline, so it is never applied. -
MISSING
Applied, and no longer carried by this build. -
FUTURE
Applied by a newer build: its version is above everything this build carries. -
IGNORED
Not applied, and older than the newest applied version. -
OUTDATED
A repeatable migration whose script changed since it last ran. -
SUPERSEDED
An earlier run of a repeatable migration that a later run replaced. -
ABOVE_TARGET
Above the configured target version.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-