Browse Source

migrate database new schema 41

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