fix RecreateStoreOnModelMismatch option not working when an existing xcdatamodel gets updated without adding a new version

This commit is contained in:
John Rommel Estropia
2016-09-10 22:51:33 +09:00
parent 4a34012d58
commit f99d3cc21a
9 changed files with 36 additions and 12 deletions

View File

@@ -121,5 +121,5 @@ public protocol CSLocalStorage: CSStorageInterface {
Called by the `CSDataStack` to perform actual deletion of the store file from disk. Do not call directly! The `sourceModel` argument is a hint for the existing store's model version. Implementers can use the `sourceModel` to perform necessary store operations. (SQLite stores for example, can convert WAL journaling mode to DELETE before deleting)
*/
@objc
func eraseStorageAndWait(soureModel soureModel: NSManagedObjectModel, error: NSErrorPointer) -> Bool
func eraseStorageAndWait(soureModel soureModel: NSManagedObjectModel?, error: NSErrorPointer) -> Bool
}