Skip to content

Commit

Permalink
remove duplicated upgrade
Browse files Browse the repository at this point in the history
Signed-off-by: tobiasKaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky committed Jan 13, 2018
1 parent 87e71cc commit 3093189
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 3093189

Please sign in to comment.