Simplified transmitters, added database migration

This commit is contained in:
Arty Bishop committed 2021-03-23 10:28:51 +00:00
1 parent a882a73b8e
commit 6f8db0b9b1
6 files changed
+146 -39

No files matched your search

@@ -2,7 +2,7 @@
"formatVersion": 1,
"database": {
"version": 2,
"identityHash": "ae51481b0cb1f66d055cd7487e79ad2c",
"identityHash": "24170ecaf2ab85adb66aa3b557134997",
"entities": [
{
"tableName": "entries",
@@ -44,7 +44,7 @@
},
{
"tableName": "transmitters",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`uuid` TEXT NOT NULL, `description` TEXT NOT NULL, `isAlive` INTEGER NOT NULL, `uplinkLow` INTEGER, `uplinkHigh` INTEGER, `downlinkLow` INTEGER, `downlinkHigh` INTEGER, `mode` TEXT, `isInverted` INTEGER NOT NULL, `catNum` INTEGER NOT NULL, PRIMARY KEY(`uuid`))",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`uuid` TEXT NOT NULL, `description` TEXT NOT NULL, `isAlive` INTEGER NOT NULL, `uplink` INTEGER, `downlink` INTEGER, `mode` TEXT, `isInverted` INTEGER NOT NULL, `catNum` INTEGER NOT NULL, PRIMARY KEY(`uuid`))",
"fields": [
{
"fieldPath": "uuid",
@@ -65,26 +65,14 @@
"notNull": true
},
{
"fieldPath": "uplinkLow",
"columnName": "uplinkLow",
"fieldPath": "uplink",
"columnName": "uplink",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "uplinkHigh",
"columnName": "uplinkHigh",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "downlinkLow",
"columnName": "downlinkLow",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "downlinkHigh",
"columnName": "downlinkHigh",
"fieldPath": "downlink",
"columnName": "downlink",
"affinity": "INTEGER",
"notNull": false
},
@@ -120,7 +108,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, 'ae51481b0cb1f66d055cd7487e79ad2c')"
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '24170ecaf2ab85adb66aa3b557134997')"
]
}
}