From 6e1c7716dcde6397135bf0551837a7e56962ae17 Mon Sep 17 00:00:00 2001 From: Patrick Goldinger Date: Fri, 15 Mar 2024 19:43:55 +0100 Subject: [PATCH] Add generated schema 2 of clipboard database --- .../2.json | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 app/schemas/dev.patrickgold.florisboard.ime.clipboard.provider.ClipboardFilesDatabase/2.json diff --git a/app/schemas/dev.patrickgold.florisboard.ime.clipboard.provider.ClipboardFilesDatabase/2.json b/app/schemas/dev.patrickgold.florisboard.ime.clipboard.provider.ClipboardFilesDatabase/2.json new file mode 100644 index 00000000..ed480d52 --- /dev/null +++ b/app/schemas/dev.patrickgold.florisboard.ime.clipboard.provider.ClipboardFilesDatabase/2.json @@ -0,0 +1,68 @@ +{ + "formatVersion": 1, + "database": { + "version": 2, + "identityHash": "dc886df9792fe6b6ad532cc7aa7c4a84", + "entities": [ + { + "tableName": "clipboard_files", + "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`_id` INTEGER NOT NULL, `_display_name` TEXT NOT NULL, `_size` INTEGER NOT NULL, `orientation` INTEGER NOT NULL, `mimeTypes` TEXT NOT NULL, PRIMARY KEY(`_id`))", + "fields": [ + { + "fieldPath": "id", + "columnName": "_id", + "affinity": "INTEGER", + "notNull": true + }, + { + "fieldPath": "displayName", + "columnName": "_display_name", + "affinity": "TEXT", + "notNull": true + }, + { + "fieldPath": "size", + "columnName": "_size", + "affinity": "INTEGER", + "notNull": true + }, + { + "fieldPath": "orientation", + "columnName": "orientation", + "affinity": "INTEGER", + "notNull": true + }, + { + "fieldPath": "mimeTypes", + "columnName": "mimeTypes", + "affinity": "TEXT", + "notNull": true + } + ], + "primaryKey": { + "columnNames": [ + "_id" + ], + "autoGenerate": false + }, + "indices": [ + { + "name": "index_clipboard_files__id", + "unique": false, + "columnNames": [ + "_id" + ], + "orders": [], + "createSql": "CREATE INDEX IF NOT EXISTS `index_clipboard_files__id` ON `${TABLE_NAME}` (`_id`)" + } + ], + "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, 'dc886df9792fe6b6ad532cc7aa7c4a84')" + ] + } +} \ No newline at end of file