MigrationReport

class MigrationReport(val applied: List<AppliedMigration>, val durationMs: Long)

What a run did.

Worth logging at startup, and the empty case is the one worth logging too - "the database was already up to date" is an answer, and a run that says nothing at all leaves you wondering whether it happened.

Constructors

Link copied to clipboard
internal constructor(applied: List<AppliedMigration>, durationMs: Long)

Properties

Link copied to clipboard

The migrations this run applied, in the order it applied them, read back from the history table rather than assembled from what was intended.

Link copied to clipboard

How long the whole run took, waiting for the lock included.

Functions

Link copied to clipboard

Whether the database was already up to date.

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