Sql Schema
API for creating and migrating a SQL database.
Functions
Link copied to clipboard
abstract fun migrate(driver: SqlDriver, oldVersion: Int, newVersion: Int): QueryResult<Unit>
Content copied to clipboard
Use driver to migrate from schema oldVersion to newVersion.
Properties
Extensions
Link copied to clipboard
fun SqlSchema.migrateWithCallbacks(driver: SqlDriver, oldVersion: Int, newVersion: Int, vararg callbacks: AfterVersion)
Content copied to clipboard
Run SqlSchema.migrate normally but execute callbacks during the migration whenever it finished upgrading to a version specified by AfterVersion.afterVersion.