diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersDbHelper.java b/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersDbHelper.java index d630600cc3..c942cfd40b 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersDbHelper.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersDbHelper.java @@ -109,8 +109,8 @@ public class MapMarkersDbHelper { } private void onUpgrade(SQLiteConnection db, int oldVersion, int newVersion) { - db.execSQL("DROP TABLE " + MARKERS_TABLE_NAME); - db.execSQL("DROP TABLE " + GROUPS_TABLE_NAME); + db.execSQL("DROP TABLE IF EXISTS " + MARKERS_TABLE_NAME); + db.execSQL("DROP TABLE IF EXISTS " + GROUPS_TABLE_NAME); onCreate(db); }