merge sqlite journal files before migration

This commit is contained in:
John Rommel Estropia committed 2017-11-16 02:27:06 +09:00
1 parent d3b3b5ff4a
commit 2c7039232e
1 file changed
+1
+1
View File
@@ -714,6 +714,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(