KandraMigration

abstract class KandraMigration(val version: Int, val name: String)

Base class for a single versioned CQL migration.

Define migrations as Kotlin object subclasses and register them with KandraMigrationRunner.run. Migrations are applied in ascending version order and skipped if already applied.

Never modify a migration after it has been applied to any environment. Kandra validates checksums on startup and throws io.kandra.core.exception.KandraMigrationException if a previously-applied migration's body has changed.

Constructors

Link copied to clipboard
constructor(version: Int, name: String)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun up(session: CqlSession)