MigrationInfo

class MigrationInfo(val version: MigrationVersion?, val description: String, val script: String, val origin: String?, val checksum: Long?, val status: MigrationStatus, val applied: AppliedMigration?)

One migration, as the run sees it: what it is, where it came from, and what is going to happen to it.

Constructors

Link copied to clipboard
internal constructor(version: MigrationVersion?, description: String, script: String, origin: String?, checksum: Long?, status: MigrationStatus, applied: AppliedMigration?)

Properties

Link copied to clipboard

The history row, where there is one.

Link copied to clipboard

What the file hashes to now, or null for a class and for a migration that exists only in the history. The counterpart to AppliedMigration.checksum, which is what it hashed to when it ran - the two side by side are what a CHANGED status is reporting.

Link copied to clipboard

What its name said.

Link copied to clipboard

How this migration is named in a message: V2 add indexes, or R rebuild views.

Link copied to clipboard

Where the file or class was found, or null for one that exists only in the history - a migration whose file has been deleted has nowhere to point at.

Link copied to clipboard

The file name or class name that identifies it.

Link copied to clipboard

What is going to happen to it.

Link copied to clipboard

The version, or null for a repeatable migration.

Functions

Link copied to clipboard
open override fun toString(): String