浏览代码

migrate database new schema 41

Marino Faggiana 6 年之前
父节点
当前提交
3467ad1e56
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      iOSClient/Database/NCManageDatabase.swift

+ 4 - 0
iOSClient/Database/NCManageDatabase.swift

@@ -118,6 +118,10 @@ class NCManageDatabase: NSObject {
                     }
                 }
                 */
+                
+                if oldSchemaVersion < 41 {
+                    migration.deleteData(forType: tableActivity.className())
+                }
         })