This repository was archived by the owner on Feb 4, 2025. It is now read-only.
Commit a6f12cf
Thomas Horta
Remove Migration and fallback to destructive migration
Since UPSERT is not supported by all Android API versions and the actual data
inside the Prompts table changed along with the schema, it will be best to avoid
the effort of maintaing stale data and just rely on Room's fallback to
destructive migration, which will drop the table (and data) and create a new one
with the correct schema.
This shouldn't have many downsides as we fetch new data as soon as the app opens
and the user reaches the Dashboard. The only possible caveat is for users that
have reminders setup with Prompts enabled, that might see a notification without
Blogging Prompts if they don't open the app after updating it.1 parent 04da183 commit a6f12cf
File tree
1 file changed
+0
-38
lines changed- fluxc/src/main/java/org/wordpress/android/fluxc/persistence
1 file changed
+0
-38
lines changedLines changed: 0 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
| |||
311 | 310 | | |
312 | 311 | | |
313 | 312 | | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | 313 | | |
352 | 314 | | |
0 commit comments