Skip to content

Commit

Permalink
#193 - Removed begin and end Transaction from onUpgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
GrazianoCapelli committed Nov 16, 2022
1 parent 1f72366 commit 2ce4f26
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,12 @@ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
case 3:
//upgrade from version 3 to 4
//Log.w("myApp", "[#] DatabaseHandler.java - onUpgrade: from version 3 to 4 ...");
db.beginTransaction();
db.execSQL(DATABASE_ALTER_TABLE_LOCATIONS_TO_V4_VERTICAL_ACCURACY);
db.execSQL(DATABASE_ALTER_TABLE_LOCATIONS_TO_V4_SPEED_ACCURACY);
db.execSQL(DATABASE_ALTER_TABLE_LOCATIONS_TO_V4_BEARING_ACCURACY);
db.execSQL(DATABASE_ALTER_TABLE_PLACEMARKS_TO_V4_VERTICAL_ACCURACY);
db.execSQL(DATABASE_ALTER_TABLE_PLACEMARKS_TO_V4_SPEED_ACCURACY);
db.execSQL(DATABASE_ALTER_TABLE_PLACEMARKS_TO_V4_BEARING_ACCURACY);
db.endTransaction();

//and so on.. do not add breaks so that switch will
//start at oldVersion, and run straight through to the latest
Expand Down

0 comments on commit 2ce4f26

Please sign in to comment.