marinofaggiana 5 سال پیش
والد
کامیت
e27b2fe06d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      iOSClient/Database/NCManageDatabase.swift

+ 1 - 1
iOSClient/Database/NCManageDatabase.swift

@@ -48,7 +48,7 @@ class NCManageDatabase: NSObject {
                     migration.deleteData(forType: tableDirectory.className())
                     migration.deleteData(forType: tableDirectory.className())
                 }
                 }
                 
                 
-                if oldSchemaVersion < 64 {
+                if oldSchemaVersion < 54 {
                     migration.enumerateObjects(ofType: tableMetadata.className()) { oldObject, newObject in
                     migration.enumerateObjects(ofType: tableMetadata.className()) { oldObject, newObject in
                         newObject!["primaryKey"] = (oldObject!["account"] as! String) + (oldObject!["fileID"] as! String)
                         newObject!["primaryKey"] = (oldObject!["account"] as! String) + (oldObject!["fileID"] as! String)
                     }
                     }