Sql

class Sql(val version: MigrationVersion?, val description: String, val script: String, val origin: String, val checksum: Long, val transactional: Boolean, val content: String) : DiscoveredMigration

A migration read out of a .sql file.

Constructors

Link copied to clipboard
constructor(version: MigrationVersion?, description: String, script: String, origin: String, checksum: Long, transactional: Boolean, content: String)

Properties

Link copied to clipboard
open override val checksum: Long

The number that decides whether this changed since it ran, or null for "do not check".

Link copied to clipboard

The text that will be sent, read at the scan rather than when it runs and with any placeholders already pasted into it.

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
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

Whether to wrap it in a transaction - false where the file asked not to be.

Link copied to clipboard
open override val version: MigrationVersion?

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