From 309318949ecee262c15b2aeef843d25547f04599 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Wed, 10 Jan 2018 10:56:58 +0100 Subject: [PATCH] remove duplicated upgrade Signed-off-by: tobiasKaminsky --- .../android/providers/FileContentProvider.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/main/java/com/owncloud/android/providers/FileContentProvider.java b/src/main/java/com/owncloud/android/providers/FileContentProvider.java index 490a7c3eb29f..fff2bdfec47e 100644 --- a/src/main/java/com/owncloud/android/providers/FileContentProvider.java +++ b/src/main/java/com/owncloud/android/providers/FileContentProvider.java @@ -1556,24 +1556,6 @@ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { } } - - if (!upgraded) { - Log_OC.i(SQL, String.format(Locale.ENGLISH, UPGRADE_VERSION_MSG, oldVersion, newVersion)); - } - - if (oldVersion < 27 && newVersion >= 27) { - Log_OC.i(SQL, "Entering in the #27 Adding token to ocUpload"); - db.beginTransaction(); - try { - db.execSQL(ALTER_TABLE + ProviderTableMeta.UPLOADS_TABLE_NAME + - ADD_COLUMN + ProviderTableMeta.UPLOADS_FOLDER_UNLOCK_TOKEN + " TEXT "); - upgraded = true; - db.setTransactionSuccessful(); - } finally { - db.endTransaction(); - } - } - if (!upgraded) { Log_OC.i(SQL, String.format(Locale.ENGLISH, UPGRADE_VERSION_MSG, oldVersion, newVersion)); }