From a3b33bedb867867fc2e2baab1c5b82da6acc0a91 Mon Sep 17 00:00:00 2001 From: John Estropia Date: Thu, 18 May 2017 12:59:02 +0900 Subject: [PATCH] added more migration error types --- Sources/CoreStoreError.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/CoreStoreError.swift b/Sources/CoreStoreError.swift index f32a670..3ec6c42 100644 --- a/Sources/CoreStoreError.swift +++ b/Sources/CoreStoreError.swift @@ -294,7 +294,8 @@ public extension NSError { } switch CocoaError.Code(rawValue: self.code) { - case CocoaError.Code.persistentStoreIncompatibleVersionHash, + case CocoaError.Code.persistentStoreIncompatibleSchema, + CocoaError.Code.persistentStoreIncompatibleVersionHash, CocoaError.Code.migrationMissingSourceModel, CocoaError.Code.migration: return true