1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-31 12:01:54 +02:00

added JUnit database test

set index and unique to datetime
This commit is contained in:
OliE
2018-01-01 13:47:36 +01:00
parent bd187962d4
commit b5fcb9525f
5 changed files with 267 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
"formatVersion": 1,
"database": {
"version": 1,
"identityHash": "410f7d8b5658d42485fff50486fde7f5",
"identityHash": "f7147b87965bad6c8417519fa7d0f7d2",
"entities": [
{
"tableName": "scaleMeasurements",
@@ -93,7 +93,16 @@
],
"autoGenerate": true
},
"indices": [],
"indices": [
{
"name": "index_scaleMeasurements_datetime",
"unique": true,
"columnNames": [
"datetime"
],
"createSql": "CREATE UNIQUE INDEX `index_scaleMeasurements_datetime` ON `${TABLE_NAME}` (`datetime`)"
}
],
"foreignKeys": []
},
{
@@ -167,7 +176,7 @@
],
"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, \"410f7d8b5658d42485fff50486fde7f5\")"
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, \"f7147b87965bad6c8417519fa7d0f7d2\")"
]
}
}