marinofaggiana 4 years ago
parent
commit
e57ad60785
2 changed files with 5 additions and 2 deletions
  1. 1 1
      iOSClient/CCGlobal.h
  2. 4 1
      iOSClient/Database/NCManageDatabase.swift

+ 1 - 1
iOSClient/CCGlobal.h

@@ -85,7 +85,7 @@
 
 // Database Realm
 #define k_databaseDefault                               @"nextcloud.realm"
-#define k_databaseSchemaVersion                         133
+#define k_databaseSchemaVersion                         134
 
 // Intro selector
 #define k_intro_login                                   0

+ 4 - 1
iOSClient/Database/NCManageDatabase.swift

@@ -107,8 +107,11 @@ class NCManageDatabase: NSObject {
                         migration.deleteData(forType: tableDirectory.className())
                     }
                     
-                    if oldSchemaVersion < 132 {
+                    if oldSchemaVersion < 134 {
                         migration.deleteData(forType: tableShare.className())
+                        migration.deleteData(forType: tableDirectEditingCreators.className())
+                        migration.deleteData(forType: tableDirectEditingEditors.className())
+                        migration.deleteData(forType: tableExternalSites.className())
                     }
                     
                 }, shouldCompactOnLaunch: { totalBytes, usedBytes in