fix compound indexes for dynamic models

This commit is contained in:
Pimenov Sergey
2021-04-04 20:12:40 -07:00
parent 593c0510d3
commit 6a2394052c
2 changed files with 2 additions and 2 deletions

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(