瀏覽代碼

clear old schema DB

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

+ 0 - 6
iOSClient/Database/NCManageDatabase.swift

@@ -82,12 +82,6 @@ class NCManageDatabase: NSObject {
                     migration.deleteData(forType: tableTrash.className())
                 }
                 
-                if oldSchemaVersion < 77 {
-                    migration.deleteData(forType: tableDirectory.className())
-                    migration.deleteData(forType: tableMetadata.className())
-                    migration.deleteData(forType: tableMedia.className())
-                }
-                
             }, shouldCompactOnLaunch: { totalBytes, usedBytes in
                 
                 // totalBytes refers to the size of the file on disk in bytes (data + free space)