Code

class Code(val version: MigrationVersion?, val description: String, val script: String, val origin: String, val migrationClass: Class<*>) : DiscoveredMigration

A migration read off an OctaviusMigration class, which the scan has not constructed.

Constructors

Link copied to clipboard
constructor(version: MigrationVersion?, description: String, script: String, origin: String, migrationClass: Class<*>)

Properties

Link copied to clipboard
open override val checksum: Long?

Always null here: a class's checksum, if it declares one, is on the instance.

Link copied to clipboard

The class's full name, which is what the history files it under.

Link copied to clipboard
open override val description: String

The words after __, as they will be recorded.

Link copied to clipboard

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

Link copied to clipboard

The class, loaded by the scan but not initialised, and constructed when this migration's turn comes.

Link copied to clipboard
open override val origin: String

Where this was found, for a log line and for the report.

Link copied to clipboard
open override val script: String

What the history table files this under: a file's name, or a class's full name.

Link copied to clipboard
open override val version: MigrationVersion?

The version, or null where the name marked this repeatable.