Skip to content

Commit 01cdc46

Browse files
add schemas
Signed-off-by: androidacy-user <opensource@androidacy.com>
1 parent 1e1b66d commit 01cdc46

2 files changed

Lines changed: 26 additions & 6 deletions

File tree

  • app/roomSchemas
    • com.fox2code.mmm.utils.room.ModuleListCacheDatabase
    • com.fox2code.mmm.utils.room.ReposListDatabase

app/roomSchemas/com.fox2code.mmm.utils.room.ModuleListCacheDatabase/1.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"formatVersion": 1,
33
"database": {
44
"version": 1,
5-
"identityHash": "2abfd2dad332c887d96cdda63d92a639",
5+
"identityHash": "0ee5da8f0cbafe111752b3281ecbdfff",
66
"entities": [
77
{
88
"tableName": "modulelistcache",
@@ -129,14 +129,24 @@
129129
"codename"
130130
]
131131
},
132-
"indices": [],
132+
"indices": [
133+
{
134+
"name": "index_modulelistcache_codename",
135+
"unique": true,
136+
"columnNames": [
137+
"codename"
138+
],
139+
"orders": [],
140+
"createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_modulelistcache_codename` ON `${TABLE_NAME}` (`codename`)"
141+
}
142+
],
133143
"foreignKeys": []
134144
}
135145
],
136146
"views": [],
137147
"setupQueries": [
138148
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
139-
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '2abfd2dad332c887d96cdda63d92a639')"
149+
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '0ee5da8f0cbafe111752b3281ecbdfff')"
140150
]
141151
}
142152
}

app/roomSchemas/com.fox2code.mmm.utils.room.ReposListDatabase/1.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"formatVersion": 1,
33
"database": {
44
"version": 1,
5-
"identityHash": "5a217dbf3caa5a6b70e7eee98636866c",
5+
"identityHash": "7ad41628a74233e6c6d2f88142274d85",
66
"entities": [
77
{
88
"tableName": "ReposList",
@@ -69,14 +69,24 @@
6969
"id"
7070
]
7171
},
72-
"indices": [],
72+
"indices": [
73+
{
74+
"name": "index_ReposList_id",
75+
"unique": true,
76+
"columnNames": [
77+
"id"
78+
],
79+
"orders": [],
80+
"createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_ReposList_id` ON `${TABLE_NAME}` (`id`)"
81+
}
82+
],
7383
"foreignKeys": []
7484
}
7585
],
7686
"views": [],
7787
"setupQueries": [
7888
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
79-
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '5a217dbf3caa5a6b70e7eee98636866c')"
89+
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '7ad41628a74233e6c6d2f88142274d85')"
8090
]
8191
}
8292
}

0 commit comments

Comments
 (0)