I very much enjoy sqldelight's gradle
verifyDbMigrations
task.
I now however have some "code" migrations as well, i.e. the
AfterVersion
blocks.
Is there a way I can run these in the test as well?
Or, is the only way to roll my own --
1. i.e. open a jdbc driver,
2. execute
manually all 1.db
ddl command strings;
3. and then
Database.Schema.migrate(driver, 0, afterVersionBlocks)
?
(the manual DDL is kind of cringy, feels like duplicate of what
1.db
essentially is - can't the library do this for me?)
.. I think what I'm asking is - is there a way to "apply" the reference
1.db
?