Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
public enum MigrationState
- Object
- Enum<MigrationState>
- MigrationState
ImplementsComparable<MigrationState>
Where one migration stands, as reported by
Migrator.info().Enum constants
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. |
Methods
public static MigrationState[] values() | |
public static MigrationState valueOf(String name) |
Inherited methods
Enum constant details
PENDING
PENDINGCarried by this build and not applied yet.
SUCCESS
SUCCESSApplied.
FAILED
FAILEDApplied and failed; the database may hold half of it.
BASELINE
BASELINEThe baseline marker: everything up to this version is taken as already present.
BELOW_BASELINE
BELOW_BASELINEAt or below the baseline, so it is never applied.
MISSING
MISSINGApplied, and no longer carried by this build.
FUTURE
FUTUREApplied by a newer build: its version is above everything this build carries.
IGNORED
IGNOREDNot applied, and older than the newest applied version.
OUTDATED
OUTDATEDA repeatable migration whose script changed since it last ran.
SUPERSEDED
SUPERSEDEDAn earlier run of a repeatable migration that a later run replaced.
ABOVE_TARGET
ABOVE_TARGETAbove the configured target version.
Method details
values
public static MigrationState[] values()valueOf
public static MigrationState valueOf(String name)