From 2ce4f26cb8d48bd8f34635e5c7f8c623ff61f53c Mon Sep 17 00:00:00 2001 From: GrazianoCapelli Date: Wed, 16 Nov 2022 20:35:49 +0100 Subject: [PATCH] #193 - Removed begin and end Transaction from onUpgrade --- .../eu/basicairdata/graziano/gpslogger/DatabaseHandler.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/java/eu/basicairdata/graziano/gpslogger/DatabaseHandler.java b/app/src/main/java/eu/basicairdata/graziano/gpslogger/DatabaseHandler.java index 4a5ee4db..93da2eb6 100644 --- a/app/src/main/java/eu/basicairdata/graziano/gpslogger/DatabaseHandler.java +++ b/app/src/main/java/eu/basicairdata/graziano/gpslogger/DatabaseHandler.java @@ -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