From b55dd13dffdc87ad1b081a0b63eb459e15931a31 Mon Sep 17 00:00:00 2001 From: John Rommel Estropia Date: Wed, 15 Nov 2017 23:50:10 +0900 Subject: [PATCH] merge sqlite journal files before migration --- Sources/DataStack+Migration.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/DataStack+Migration.swift b/Sources/DataStack+Migration.swift index e441dbf..11601f6 100644 --- a/Sources/DataStack+Migration.swift +++ b/Sources/DataStack+Migration.swift @@ -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(