marinofaggiana 4 年之前
父節點
當前提交
9740ce7645
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      iOSClient/Database/NCManageDatabase.swift

+ 1 - 1
iOSClient/Database/NCManageDatabase.swift

@@ -101,7 +101,6 @@ class NCManageDatabase: NSObject {
                     
                     if oldSchemaVersion < 95 {
                         migration.deleteData(forType: tableE2eEncryptionLock.className())
-                        migration.deleteData(forType: tableDirectory.className())
                     }
                     
                     if oldSchemaVersion < 104 {
@@ -115,6 +114,7 @@ class NCManageDatabase: NSObject {
                     if oldSchemaVersion < 110 {
                         migration.deleteData(forType: tableMetadata.className())
                         migration.deleteData(forType: tableMedia.className())
+                        migration.deleteData(forType: tableDirectory.className())
                     }
                     
                 }, shouldCompactOnLaunch: { totalBytes, usedBytes in