Add some code

This commit is contained in:
Alexander Sytnyk 2017-09-08 16:57:09 +03:00
parent d5639abfd6
commit 196fd7c1b5

View file

@ -109,8 +109,8 @@ public class MapMarkersDbHelper {
} }
private void onUpgrade(SQLiteConnection db, int oldVersion, int newVersion) { private void onUpgrade(SQLiteConnection db, int oldVersion, int newVersion) {
db.execSQL("DROP TABLE " + MARKERS_TABLE_NAME); db.execSQL("DROP TABLE IF EXISTS " + MARKERS_TABLE_NAME);
db.execSQL("DROP TABLE " + GROUPS_TABLE_NAME); db.execSQL("DROP TABLE IF EXISTS " + GROUPS_TABLE_NAME);
onCreate(db); onCreate(db);
} }