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
904d45b255
commit
a1afdeb6d3
2 changed files with 6 additions and 0 deletions
|
|
@ -49,6 +49,12 @@ dependencies {
|
|||
|
||||
sqldelight {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue