marinofaggiana 4 năm trước cách đây
mục cha
commit
c55381c88f
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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())
                         }
                     }