added more migration error types

This commit is contained in:
John Estropia
2017-05-18 12:59:02 +09:00
parent eaf7544c50
commit a3b33bedb8

View File

@@ -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