merge sqlite journal files before migration

This commit is contained in:
John Rommel Estropia
2017-11-15 23:50:10 +09:00
parent 66dd5b6f27
commit b55dd13dff

View File

@@ -715,6 +715,7 @@ public extension DataStack {
}
timerQueue.async(execute: recursiveCheck)
_ = try storage.cs_finalizeStorageAndWait(soureModelHint: sourceModel)
_ = try withExtendedLifetime(NSPersistentStoreCoordinator(managedObjectModel: destinationModel)) { (coordinator: NSPersistentStoreCoordinator) in
try coordinator.addPersistentStoreSynchronously(