MigrationState

Where a migration got to.

A transactional migration is only ever SUCCESS here: it wrote its row inside the transaction that ran it, so a failure took the row with it and left no trace. The other two belong to migrations that ran without one, where the database really is part-way and only a person can say what to do about it.

Entries

Link copied to clipboard

Started and not heard from since - written before the first statement of a migration that runs outside a transaction. A row still saying this on the next run means the process died in the middle of it.

Link copied to clipboard

Finished.

Link copied to clipboard

A statement failed, and the ones before it in the same file had already been committed.

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.