Skip to content

Commit

Permalink
lightway migration
Browse files Browse the repository at this point in the history
  • Loading branch information
kvyatkovskys committed Mar 27, 2023
1 parent 6440fbb commit 7950546
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/KVKLogger/KVKPersistenceСontroller.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7950546

Please sign in to comment.