Browse Source

migrate database new schema 41

Marino Faggiana 6 years ago
parent
commit
3467ad1e56
1 changed files with 4 additions and 0 deletions
  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())
+                }
         })
         })