AppliedMigration

class AppliedMigration(val version: MigrationVersion?, val description: String, val type: MigrationType, val script: String, val checksum: Long?, val state: MigrationState, val failedStatement: Int?, val executionTimeMs: Long, val installedBy: String, val installedOn: Instant)

A row of the history table: a migration that has run against this database, and how it went.

Constructors

Link copied to clipboard
internal constructor(version: MigrationVersion?, description: String, type: MigrationType, script: String, checksum: Long?, state: MigrationState, failedStatement: Int?, executionTimeMs: Long, installedBy: String, installedOn: Instant)

Properties

Link copied to clipboard

What the file hashed to when it ran, or null where there is nothing to compare against, which is every migration written in Kotlin that did not declare one.

Link copied to clipboard

What the name said.

Link copied to clipboard

How long it took.

Link copied to clipboard

Which statement of the script failed, counting from one - only ever set on a migration that ran outside a transaction, since one that ran inside left no row at all.

Link copied to clipboard

The database user that ran it.

Link copied to clipboard
Link copied to clipboard

The file name or the class's full name - what identifies it.

Link copied to clipboard

Where it got to.

Link copied to clipboard

Whether this was a .sql file or a class.

Link copied to clipboard

The version, or null for a repeatable migration.

Functions

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