diff --git a/Core/Core/CorePersistence.swift b/Core/Core/CorePersistence.swift index 1bcbc7d88..131f69e0d 100644 --- a/Core/Core/CorePersistence.swift +++ b/Core/Core/CorePersistence.swift @@ -179,6 +179,11 @@ public class CorePersistence: CorePersistenceProtocol { fatalError("Unresolved error \(error), \(error.userInfo)") } }) + let description = NSPersistentStoreDescription() + description.shouldInferMappingModelAutomatically = true + description.shouldMigrateStoreAutomatically = true + container.persistentStoreDescriptions = [description] + return container } diff --git a/Course/Course/CoursePersistence.swift b/Course/Course/CoursePersistence.swift index 9931aaa8c..9b591ddac 100644 --- a/Course/Course/CoursePersistence.swift +++ b/Course/Course/CoursePersistence.swift @@ -205,6 +205,11 @@ public class CoursePersistence: CoursePersistenceProtocol { fatalError("Unresolved error \(error), \(error.userInfo)") } }) + let description = NSPersistentStoreDescription() + description.shouldInferMappingModelAutomatically = true + description.shouldMigrateStoreAutomatically = true + container.persistentStoreDescriptions = [description] + return container } diff --git a/Dashboard/Dashboard/DashboardPersistence.swift b/Dashboard/Dashboard/DashboardPersistence.swift index e02164a0a..0f35a82ed 100644 --- a/Dashboard/Dashboard/DashboardPersistence.swift +++ b/Dashboard/Dashboard/DashboardPersistence.swift @@ -105,6 +105,11 @@ public class DashboardPersistence: DashboardPersistenceProtocol { fatalError("Unresolved error \(error), \(error.userInfo)") } }) + let description = NSPersistentStoreDescription() + description.shouldInferMappingModelAutomatically = true + description.shouldMigrateStoreAutomatically = true + container.persistentStoreDescriptions = [description] + return container } diff --git a/Discovery/Discovery/DiscoveryPersistence.swift b/Discovery/Discovery/DiscoveryPersistence.swift index 4df3c746f..82c314527 100644 --- a/Discovery/Discovery/DiscoveryPersistence.swift +++ b/Discovery/Discovery/DiscoveryPersistence.swift @@ -108,6 +108,11 @@ public class DiscoveryPersistence: DiscoveryPersistenceProtocol { fatalError("Unresolved error \(error), \(error.userInfo)") } }) + let description = NSPersistentStoreDescription() + description.shouldInferMappingModelAutomatically = true + description.shouldMigrateStoreAutomatically = true + container.persistentStoreDescriptions = [description] + return container }