Generate database with model version 3, to unit test database migration.
https://cashapp.github.io/sqldelight/1.5.4/multiplatform_sqlite/migrations/
This commit is contained in:
parent
58ab1c049a
commit
b930a1a573
2 changed files with 6 additions and 0 deletions
|
|
@ -49,6 +49,12 @@ dependencies {
|
||||||
|
|
||||||
sqldelight {
|
sqldelight {
|
||||||
database("SessionDatabase") {
|
database("SessionDatabase") {
|
||||||
|
// https://cashapp.github.io/sqldelight/1.5.4/multiplatform_sqlite/migrations/
|
||||||
|
// To generate a .db file from your latest schema, run this task
|
||||||
|
// ./gradlew generateDebugSessionDatabaseSchema
|
||||||
|
// Test migration by running
|
||||||
|
// ./gradlew verifySqlDelightMigration
|
||||||
|
schemaOutputDirectory = File("src/main/sqldelight/databases")
|
||||||
verifyMigrations = true
|
verifyMigrations = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue