From c6f4a35f3aac06a36bec49b0397c1b5b03202c16 Mon Sep 17 00:00:00 2001 From: deniscerri <64997243+deniscerri@users.noreply.github.com> Date: Fri, 28 Jul 2023 00:07:44 +0200 Subject: [PATCH] , --- .../com.deniscerri.ytdlnis.database.DBManager/9.json | 8 ++++---- .../deniscerri/ytdlnis/database/models/CommandTemplate.kt | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/schemas/com.deniscerri.ytdlnis.database.DBManager/9.json b/app/schemas/com.deniscerri.ytdlnis.database.DBManager/9.json index b5b2e002..4d3f0682 100644 --- a/app/schemas/com.deniscerri.ytdlnis.database.DBManager/9.json +++ b/app/schemas/com.deniscerri.ytdlnis.database.DBManager/9.json @@ -2,7 +2,7 @@ "formatVersion": 1, "database": { "version": 9, - "identityHash": "d29e09789b7c96b5551b80da253b7330", + "identityHash": "57a92066f71582b510b66d4e99dc339e", "entities": [ { "tableName": "results", @@ -337,7 +337,7 @@ }, { "tableName": "commandTemplates", - "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `title` TEXT NOT NULL, `content` TEXT NOT NULL, `useAsExtraCommand` INTEGER NOT NULL DEFAULT false)", + "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `title` TEXT NOT NULL, `content` TEXT NOT NULL, `useAsExtraCommand` INTEGER NOT NULL DEFAULT 0)", "fields": [ { "fieldPath": "id", @@ -362,7 +362,7 @@ "columnName": "useAsExtraCommand", "affinity": "INTEGER", "notNull": true, - "defaultValue": "false" + "defaultValue": "0" } ], "primaryKey": { @@ -512,7 +512,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, 'd29e09789b7c96b5551b80da253b7330')" + "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '57a92066f71582b510b66d4e99dc339e')" ] } } \ No newline at end of file diff --git a/app/src/main/java/com/deniscerri/ytdlnis/database/models/CommandTemplate.kt b/app/src/main/java/com/deniscerri/ytdlnis/database/models/CommandTemplate.kt index bddc03c6..d7f9c01c 100644 --- a/app/src/main/java/com/deniscerri/ytdlnis/database/models/CommandTemplate.kt +++ b/app/src/main/java/com/deniscerri/ytdlnis/database/models/CommandTemplate.kt @@ -12,6 +12,6 @@ data class CommandTemplate( var id: Long, var title: String, var content: String, - @ColumnInfo(defaultValue = "false") + @ColumnInfo(defaultValue = "0") var useAsExtraCommand: Boolean ) \ No newline at end of file