From 79505467b9465c3612ae315db74fd15d58be7aed Mon Sep 17 00:00:00 2001 From: Kviatkovskii Sergei Date: Mon, 27 Mar 2023 10:54:17 +0300 Subject: [PATCH] lightway migration --- "Sources/KVKLogger/KVKPersistence\320\241ontroller.swift" | 2 ++ 1 file changed, 2 insertions(+) diff --git "a/Sources/KVKLogger/KVKPersistence\320\241ontroller.swift" "b/Sources/KVKLogger/KVKPersistence\320\241ontroller.swift" index 4448108..fff3e4c 100644 --- "a/Sources/KVKLogger/KVKPersistence\320\241ontroller.swift" +++ "b/Sources/KVKLogger/KVKPersistence\320\241ontroller.swift" @@ -34,6 +34,8 @@ final class KVKPersistenceСontroller { } let store = NSPersistentStoreDescription(url: url) + store.shouldMigrateStoreAutomatically = true + store.shouldInferMappingModelAutomatically = true container.persistentStoreDescriptions = [store] container.loadPersistentStores { (desc, error) in if let error = error as? NSError {