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

[core] Remove database on schema downgrade #9817

Merged
merged 2 commits into from
Aug 22, 2017

Conversation

tmpsantos
Copy link
Contributor

Previously we were throwing an exception.

Previously we were throwing an exception.
Which is, delete and recreate the database.
@tmpsantos tmpsantos requested a review from jfirebaugh August 21, 2017 15:32
@tmpsantos
Copy link
Contributor Author

@jfirebaugh this was brought up by a Qt user. I think it sane, since there might be a case where you deploy an app with a certain version of mbgl and have to revert for some reason.

@tmpsantos tmpsantos self-assigned this Aug 21, 2017
@tmpsantos tmpsantos added Core The cross-platform C++ core, aka mbgl ✓ ready for review labels Aug 21, 2017
@jfirebaugh
Copy link
Contributor

Fixes #9776, see discussion there. This seems like a reasonable solution.

@friedbunny
Copy link
Contributor

Awesome — looking forward to cherry-picking this into release-ios-v3.6.0-android-v5.1.0.

@tmpsantos tmpsantos merged commit bd15e27 into master Aug 22, 2017
@tmpsantos tmpsantos deleted the tmpsantos-database_downgrade branch August 22, 2017 09:46
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