summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/default/mbgl/storage/offline_database.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/mbgl/storage/offline_database.cpp b/platform/default/mbgl/storage/offline_database.cpp
index 02736f10a4..204ee04c92 100644
--- a/platform/default/mbgl/storage/offline_database.cpp
+++ b/platform/default/mbgl/storage/offline_database.cpp
@@ -50,7 +50,7 @@ void OfflineDatabase::ensureSchema() {
case 3: // no-op and fall through
case 4: migrateToVersion5(); // fall through
case 5: return;
- default: throw std::runtime_error("unknown schema version");
+ default: break; // downgrade, delete the database
}
removeExisting();