From 1b5f0597c4da060e9e690045b074ab490f041c06 Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Wed, 10 May 2017 20:13:52 +0200 Subject: [PATCH] Try to fix update Signed-off-by: Mario Danic --- .../com/owncloud/android/providers/FileContentProvider.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/owncloud/android/providers/FileContentProvider.java b/src/main/java/com/owncloud/android/providers/FileContentProvider.java index 05d1445cf1..e6df3a2fa3 100644 --- a/src/main/java/com/owncloud/android/providers/FileContentProvider.java +++ b/src/main/java/com/owncloud/android/providers/FileContentProvider.java @@ -1018,6 +1018,9 @@ public class FileContentProvider extends ContentProvider { Log_OC.i(SQL, "Create filesystem table"); createFileSystemTable(db); + upgraded = true; + db.setTransactionSuccessful(); + // magic to split out existing synced folders in two when needed // otherwise, we migrate them to their proper type (image or video) Log_OC.i(SQL, "Migrate synced_folders records for image/video split"); @@ -1059,8 +1062,6 @@ public class FileContentProvider extends ContentProvider { syncedFolderProvider.deleteSyncedFoldersInList(idsToDelete); - upgraded = true; - db.setTransactionSuccessful(); } catch (Throwable t) { Log_OC.e(TAG, "ERROR!", t); } finally {