mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
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:
committed by
Benoit Marty
parent
904d45b255
commit
a1afdeb6d3
@@ -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.
Reference in New Issue
Block a user