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

  1. Object
  2. Enum<MigrationState>
  3. MigrationState

ImplementsComparable<MigrationState>

Where one migration stands, as reported by Migrator.info().

Enum constants

PENDINGCarried by this build and not applied yet.
SUCCESSApplied.
FAILEDApplied and failed; the database may hold half of it.
BASELINEThe baseline marker: everything up to this version is taken as already present.
BELOW_BASELINEAt or below the baseline, so it is never applied.
MISSINGApplied, and no longer carried by this build.
FUTUREApplied by a newer build: its version is above everything this build carries.
IGNOREDNot applied, and older than the newest applied version.
OUTDATEDA repeatable migration whose script changed since it last ran.
SUPERSEDEDAn earlier run of a repeatable migration that a later run replaced.
ABOVE_TARGETAbove the configured target version.

Methods

public static MigrationState[] values()
public static MigrationState valueOf(String name)

Inherited methods

Enum constant details

PENDING

PENDING
Carried by this build and not applied yet.

SUCCESS

SUCCESS
Applied.

FAILED

FAILED
Applied and failed; the database may hold half of it.

BASELINE

BASELINE
The baseline marker: everything up to this version is taken as already present.

BELOW_BASELINE

BELOW_BASELINE
At or below the baseline, so it is never applied.

MISSING

MISSING
Applied, and no longer carried by this build.

FUTURE

FUTURE
Applied by a newer build: its version is above everything this build carries.

IGNORED

IGNORED
Not applied, and older than the newest applied version.

OUTDATED

OUTDATED
A repeatable migration whose script changed since it last ran.

SUPERSEDED

SUPERSEDED
An earlier run of a repeatable migration that a later run replaced.

ABOVE_TARGET

ABOVE_TARGET
Above the configured target version.

Method details

values

public static MigrationState[] values()

valueOf

public static MigrationState valueOf(String name)