ConfigMigration

interface ConfigMigration

A versioned migration from one schema version to the next.

Design note

Migrations operate on text to avoid locking KTale into a particular parsing model. Core may provide higher-level helpers for structured migrations, but the public contract stays minimal.

Properties

Link copied to clipboard
abstract val fromVersion: Int

Schema version this migration expects.

Link copied to clipboard
abstract val toVersion: Int

Schema version after this migration is applied. Usually fromVersion + 1.

Functions

Link copied to clipboard
abstract fun migrate(oldText: String): String

Applies the migration.