MigrationStatus

What is going to happen to one migration, or what already has.

Wider than the reason enum on MigrationException on purpose. That one is keyed on in a log; this one is the answer to "what about this migration", and every value here is a different answer.

Entries

Link copied to clipboard

Not applied yet. The next run will apply it.

Link copied to clipboard

Not applied yet, and its version is below one that already has been - somebody merged a branch late. The run refuses unless MigratorConfig.outOfOrder says to allow it, in which case it simply runs.

Link copied to clipboard

Applied, unchanged since. Nothing to do.

Link copied to clipboard

Applied and changed since, which the run refuses. A migration the database has already run is a migration whose text is a record of what was done, not a draft.

Link copied to clipboard

The database has run it and there is no file or class for it any more, which the run refuses.

Link copied to clipboard

A previous run died part-way through it, and the run refuses until somebody has looked.

Link copied to clipboard

Below the version this database was adopted at, so it is taken as already run.

Link copied to clipboard

Above MigratorConfig.target, so this run stops before it.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.