Add code to drop all tables and start a fresh database

RESOLVED INACTIVE

Status

()

Firefox for Android
Data Providers
RESOLVED INACTIVE
5 years ago
3 hours ago

People

(Reporter: mfinkle, Unassigned)

Tracking

15 Branch
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

I think we need to add code to drop all tables and start a fresh database. I see a few reasons to do so:

1. A downgrade situation. When downgrading we can't rollback the DB changes. All we can really do is wipe the existing data and start fresh, using the current DB version of the downgraded app.
2. Upgrading from a really old version. This is not a problem for us yet, but could be in the future. I see many Android apps just bail during onUpgrade if the old version is "out of the supported range".
3. Irrecoverable DB errors. Sometimes we hit a DB problem that causes crashes or corruption until the profile is manually cleared, or the user uninstalls/reinstalls the app. We could just blow away the database in that situation and start fresh.
(Reporter)

Updated

5 years ago
Summary: Add code to drop all tables and start a refresh database → Add code to drop all tables and start a fresh database

Comment 1

3 hours ago
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Last Resolved: 3 hours ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.