Skip to content

Commit

Permalink
Fix Migration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JackEblan committed Jan 15, 2024
1 parent 16534d7 commit 548b4ce
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build-logic/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
org.gradle.parallel=false
org.gradle.parallel=true
org.gradle.caching=true
org.gradle.configureondemand=true
8 changes: 4 additions & 4 deletions core/database/schemas/com.core.database.AppDatabase/4.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"formatVersion": 1,
"database": {
"version": 4,
"identityHash": "99d6e77c9c8ebbd4e9dbc36f5a1b07bc",
"identityHash": "1d4ceb533cd3344ef7fc041fa81cbbd7",
"entities": [
{
"tableName": "AppSettingsItemEntity",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER, `enabled` INTEGER NOT NULL, `settingsType` TEXT NOT NULL, `packageName` TEXT NOT NULL, `label` TEXT NOT NULL, `key` TEXT NOT NULL, `valueOnLaunch` TEXT NOT NULL, `valueOnRevert` TEXT NOT NULL, `safeToWrite` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER, `enabled` INTEGER NOT NULL, `settingsType` TEXT NOT NULL, `packageName` TEXT NOT NULL, `label` TEXT NOT NULL, `key` TEXT NOT NULL, `valueOnLaunch` TEXT NOT NULL, `valueOnRevert` TEXT NOT NULL, `safeToWrite` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
Expand Down Expand Up @@ -61,7 +61,7 @@
"columnName": "safeToWrite",
"affinity": "INTEGER",
"notNull": true,
"defaultValue": "0"
"defaultValue": "1"
}
],
"primaryKey": {
Expand All @@ -77,7 +77,7 @@
"views": [],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '99d6e77c9c8ebbd4e9dbc36f5a1b07bc')"
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '1d4ceb533cd3344ef7fc041fa81cbbd7')"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Migration1To4 : Migration(1, 4) {
key TEXT NOT NULL,
valueOnLaunch TEXT NOT NULL,
valueOnRevert TEXT NOT NULL,
safeToWrite INTEGER NOT NULL DEFAULT 0
safeToWrite INTEGER NOT NULL DEFAULT 1
)
""".trimIndent()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Migration3To4 : Migration(3, 4) {
key TEXT NOT NULL,
valueOnLaunch TEXT NOT NULL,
valueOnRevert TEXT NOT NULL,
safeToWrite INTEGER NOT NULL DEFAULT 0
safeToWrite INTEGER NOT NULL DEFAULT 1
)
""".trimIndent()
)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ org.gradle.configuration-cache=true
org.gradle.configuration-cache.problems=warn
org.gradle.configureondemand=false
org.gradle.jvmargs=-Xmx1536M -Dkotlin.daemon.jvm.options\="-Xmx1536M" -Dfile.encoding\=UTF-8
org.gradle.parallel=false
org.gradle.parallel=true

0 comments on commit 548b4ce

Please sign in to comment.