migrate

abstract fun migrate(driver: SqlDriver, oldVersion: Int, newVersion: Int, vararg callbacks: AfterVersion): QueryResult<Unit>

Use driver to migrate from schema oldVersion to newVersion. Each of the callbacks are executed during the migration whenever the upgrade to the version specified by AfterVersion.afterVersion has been completed.