- [WIP]: migrations fix for coredata from v11(0.5.9) to v17_1(0.6.1) and v17(0.6.0 to v17_1(0.6.1)

This commit is contained in:
mahee96
2025-03-23 11:56:17 -07:00
parent 2f3be07b5d
commit a7496e08e3
21 changed files with 2903 additions and 40 deletions

View File

@@ -246,9 +246,13 @@ private extension FetchSourceOperation
#endif
}
if let previousSourceID = self.$source.identifier
let incomingSourceID = try! Source.sourceID(from: source.sourceURL)
let previousSourceID = self.$source.identifier
if incomingSourceID != previousSourceID
{
guard source.identifier == previousSourceID else { throw SourceError.changedID(source.identifier, previousID: previousSourceID, source: source) }
throw SourceError.changedID(source.identifier, previousID: self.$source.identifier ?? "nil", source: source)
}
}