Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Cherry-pick #9817: Remove database on schema downgrade #9837

Merged
merged 3 commits into from
Aug 29, 2017

Conversation

friedbunny
Copy link
Contributor

Brings in #9817 to fix #9776. Databases with an unknown schema (e.g., v6 from master) will now be deleted and a new database initialized.

/cc @tobrun @jfirebaugh @tmpsantos

@friedbunny friedbunny added the Core The cross-platform C++ core, aka mbgl label Aug 22, 2017
@friedbunny friedbunny added this to the ios-v3.6.3 milestone Aug 22, 2017
@friedbunny friedbunny self-assigned this Aug 22, 2017
@friedbunny
Copy link
Contributor Author

friedbunny commented Aug 22, 2017

Modified the DowngradeSchema test from bd15e27 to work with schema v5 and brought in the databaseTableColumns() method so that it would run.

@friedbunny
Copy link
Contributor Author

friedbunny commented Aug 24, 2017

@tmpsantos Please review when you get a chance. 🙇

@fabian-guerra @1ec5 I’m on the fence about changelogging this one — thoughts?

@1ec5
Copy link
Contributor

1ec5 commented Aug 24, 2017

This currently only has an effect on caches created from a build on master, but not from any previous release or prerelease, correct? If that’s the case, then I’d lean against release-noting it.

tmpsantos and others added 3 commits August 29, 2017 14:08
Previously we were throwing an exception.
Which is, delete and recreate the database.
@friedbunny friedbunny merged commit eedd909 into release-ios-v3.6.0-android-v5.1.0 Aug 29, 2017
@friedbunny friedbunny deleted the fb-9817-cherry-pick branch August 29, 2017 18:39
@tobrun tobrun mentioned this pull request Sep 26, 2017
19 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core The cross-platform C++ core, aka mbgl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants