marinofaggiana 4 years ago
parent
commit
c55381c88f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      iOSClient/Data/NCManageDatabase.swift

+ 1 - 0
iOSClient/Data/NCManageDatabase.swift

@@ -127,6 +127,7 @@ class NCManageDatabase: NSObject {
                     if oldSchemaVersion < 162 {
                         migration.enumerateObjects(ofType: tableAccount.className()) { oldObject, newObject in
                             newObject!["userId"] = oldObject!["userID"]
+                            migration.deleteData(forType: tableMetadata.className())
                         }
                     }