Commit 22911d5
committed
DataConnectCacheDatabaseMigrator.kt: make the database multi-user
Make the database multi-user by adding a `userId` column to the `entity_data`, `query_results`, and `entity_query_map` tables.
Also, update the primary keys, unique constraints, and indexes to reflect this change.
### Changes
* DataConnectCacheDatabaseMigrator.kt:
* Add a `userId` column to the `entity_data`, `query_results`, and `entity_query_map` tables
* Update the primary keys, unique constraints, and indexes to reflect this change1 parent b0bb84d commit 22911d5
File tree
1 file changed
+23
-9
lines changed- firebase-dataconnect/src/main/kotlin/com/google/firebase/dataconnect/sqlite2
1 file changed
+23
-9
lines changedLines changed: 23 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
212 | 220 | | |
213 | 221 | | |
214 | 222 | | |
215 | 223 | | |
216 | | - | |
| 224 | + | |
| 225 | + | |
217 | 226 | | |
218 | 227 | | |
219 | 228 | | |
220 | | - | |
| 229 | + | |
| 230 | + | |
221 | 231 | | |
222 | 232 | | |
223 | 233 | | |
224 | 234 | | |
225 | 235 | | |
226 | 236 | | |
227 | | - | |
| 237 | + | |
| 238 | + | |
228 | 239 | | |
229 | 240 | | |
230 | 241 | | |
231 | 242 | | |
232 | | - | |
| 243 | + | |
| 244 | + | |
233 | 245 | | |
234 | 246 | | |
235 | 247 | | |
236 | 248 | | |
237 | 249 | | |
| 250 | + | |
238 | 251 | | |
239 | 252 | | |
240 | | - | |
| 253 | + | |
241 | 254 | | |
242 | 255 | | |
243 | | - | |
244 | | - | |
245 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
246 | 260 | | |
247 | 261 | | |
248 | | - | |
| 262 | + | |
249 | 263 | | |
250 | 264 | | |
251 | 265 | | |
| |||
0 commit comments