mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-04-10 03:13:35 +02:00
merge sqlite journal files before migration
This commit is contained in:
@@ -715,6 +715,7 @@ public extension DataStack {
|
|||||||
}
|
}
|
||||||
timerQueue.async(execute: recursiveCheck)
|
timerQueue.async(execute: recursiveCheck)
|
||||||
|
|
||||||
|
_ = try storage.cs_finalizeStorageAndWait(soureModelHint: sourceModel)
|
||||||
_ = try withExtendedLifetime(NSPersistentStoreCoordinator(managedObjectModel: destinationModel)) { (coordinator: NSPersistentStoreCoordinator) in
|
_ = try withExtendedLifetime(NSPersistentStoreCoordinator(managedObjectModel: destinationModel)) { (coordinator: NSPersistentStoreCoordinator) in
|
||||||
|
|
||||||
try coordinator.addPersistentStoreSynchronously(
|
try coordinator.addPersistentStoreSynchronously(
|
||||||
|
|||||||
Reference in New Issue
Block a user