Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 463 Bytes

migrations.md

File metadata and controls

15 lines (13 loc) · 463 Bytes

{% include 'common/migrations.md' %}

If you are using an AndroidSqliteDriver you can pass these callbacks in during the driver's creation:

val driver: SqlDriver = AndroidSqliteDriver(
    schema = Database.Schema,
    context = context,
    name = "test.db",
    callback = AndroidSqliteDriver.Callback(
        schema = Database.Schema,
        AfterVersion(3) { database.execute(null, "INSERT INTO test (value) VALUES('hello')", 0) },
    )
)