Selaa lähdekoodia

migrate database new schema 41

Marino Faggiana 6 vuotta sitten
vanhempi
commit
3467ad1e56
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  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())
+                }
         })