fix compound indexes for dynamic models

This commit is contained in:
Pimenov Sergey committed 2021-04-04 20:12:40 -07:00
1 parent 593c0510d3
commit 6a2394052c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -585,7 +585,7 @@ public final class CoreStoreSchema: DynamicSchema {
entityDescription.indexes = entity.indexes.map { (compoundIndexes) in
return NSFetchIndexDescription.init(
name: "_CoreStoreSchema_indexes_\(entityDescription.name!)_\(compoundIndexes.joined(separator: "-"))",
name: "_CoreStoreSchema_indexes_\(entityDescription.name!)_\(compoundIndexes.joined(separator: "_"))",
elements: compoundIndexes.map { (keyPath) in
return NSFetchIndexElementDescription(