فهرست منبع

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())
+                }
         })