From 6c556c3035f9726f0afe385165c57b2b704b17df Mon Sep 17 00:00:00 2001 From: dece Date: Wed, 19 Jan 2022 22:53:43 +0100 Subject: [PATCH] schemas --- .../1.json | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 app/schemas/dev.lowrespalmtree.comet.AppDatabase/1.json diff --git a/app/schemas/dev.lowrespalmtree.comet.AppDatabase/1.json b/app/schemas/dev.lowrespalmtree.comet.AppDatabase/1.json new file mode 100644 index 0000000..de2e736 --- /dev/null +++ b/app/schemas/dev.lowrespalmtree.comet.AppDatabase/1.json @@ -0,0 +1,46 @@ +{ + "formatVersion": 1, + "database": { + "version": 1, + "identityHash": "44cb07b76e6b8abfaa988e1d3696a347", + "entities": [ + { + "tableName": "HistoryEntry", + "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`uri` TEXT NOT NULL, `title` TEXT, `lastVisit` INTEGER NOT NULL, PRIMARY KEY(`uri`))", + "fields": [ + { + "fieldPath": "uri", + "columnName": "uri", + "affinity": "TEXT", + "notNull": true + }, + { + "fieldPath": "title", + "columnName": "title", + "affinity": "TEXT", + "notNull": false + }, + { + "fieldPath": "lastVisit", + "columnName": "lastVisit", + "affinity": "INTEGER", + "notNull": true + } + ], + "primaryKey": { + "columnNames": [ + "uri" + ], + "autoGenerate": false + }, + "indices": [], + "foreignKeys": [] + } + ], + "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, '44cb07b76e6b8abfaa988e1d3696a347')" + ] + } +} \ No newline at end of file