diff options
author | Allan Wang <me@allanwang.ca> | 2019-03-05 18:31:47 -0500 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-03-05 18:31:47 -0500 |
commit | c917dc13dabe7781a097383ae89f2d00f32fffcb (patch) | |
tree | a5a4edb12b6fc002ee76ef175533feb6cd7b7b75 /app/src/schemas/com.pitchedapps.frost.db.FrostPrivateDatabase | |
parent | 566fcce5b79cfa22b0828d92e33ac4f109564927 (diff) | |
download | frost-c917dc13dabe7781a097383ae89f2d00f32fffcb.tar.gz frost-c917dc13dabe7781a097383ae89f2d00f32fffcb.tar.bz2 frost-c917dc13dabe7781a097383ae89f2d00f32fffcb.zip |
Create initial room models
Diffstat (limited to 'app/src/schemas/com.pitchedapps.frost.db.FrostPrivateDatabase')
-rw-r--r-- | app/src/schemas/com.pitchedapps.frost.db.FrostPrivateDatabase/1.json | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/app/src/schemas/com.pitchedapps.frost.db.FrostPrivateDatabase/1.json b/app/src/schemas/com.pitchedapps.frost.db.FrostPrivateDatabase/1.json new file mode 100644 index 00000000..7bc2e5e9 --- /dev/null +++ b/app/src/schemas/com.pitchedapps.frost.db.FrostPrivateDatabase/1.json @@ -0,0 +1,45 @@ +{ + "formatVersion": 1, + "database": { + "version": 1, + "identityHash": "6af67964d00193c6a3aa2a20200ea0ea", + "entities": [ + { + "tableName": "cookies", + "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `cookie` TEXT NOT NULL, PRIMARY KEY(`id`))", + "fields": [ + { + "fieldPath": "id", + "columnName": "id", + "affinity": "INTEGER", + "notNull": true + }, + { + "fieldPath": "name", + "columnName": "name", + "affinity": "TEXT", + "notNull": true + }, + { + "fieldPath": "cookie", + "columnName": "cookie", + "affinity": "TEXT", + "notNull": true + } + ], + "primaryKey": { + "columnNames": [ + "id" + ], + "autoGenerate": false + }, + "indices": [], + "foreignKeys": [] + } + ], + "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, \"6af67964d00193c6a3aa2a20200ea0ea\")" + ] + } +}
\ No newline at end of file |