How can I test code migrations? (the `AfterVersion...
# squarelibraries
u
How can I test code migrations? (the
AfterVersion ...
varargs) The docs (https://cashapp.github.io/sqldelight/2.0.2/jvm_sqlite/migrations/) say
Copy code
val driver: SqlDriver = JdbcSqliteDriver(
    url = "jdbc:sqlite:test.db",
    properties = Properties(),
    schema = Database.Schema,
    callbacks = arrayOf(
        AfterVersion(3) { driver -> driver.execute(null, "INSERT INTO test (value) VALUES('hello')", 0) }
    )
)
just to stick the same
AfterVersion
object's I already have for android driver and pass them here. However build fails due to
schema
&
callbacks
being unknown. Looking at sources (2.0.2) there's no such constructor.