From 2f071470988a4f00d75bf8804430cacd86f4051f Mon Sep 17 00:00:00 2001 From: Subramanian Date: Wed, 7 Nov 2018 08:37:31 +0530 Subject: [PATCH] #313 Migration fails due to Many to Many relation ship tables. Table name sorting has been removed --- Incremental Store/EncryptedStore.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Incremental Store/EncryptedStore.m b/Incremental Store/EncryptedStore.m index aa7a382..639afa7 100755 --- a/Incremental Store/EncryptedStore.m +++ b/Incremental Store/EncryptedStore.m @@ -2086,7 +2086,7 @@ -(NSString *)tableNameForRelationship:(NSRelationshipDescription *)relationship - (NSString *)tableNameForPreviousRelationship:(NSRelationshipDescription *)relationship { NSRelationshipDescription *inverse = [relationship inverseRelationship]; - NSArray *names = [@[([relationship renamingIdentifier] ? [relationship renamingIdentifier] : [relationship name]), ([inverse renamingIdentifier] ? [inverse renamingIdentifier] : [inverse name])] sortedArrayUsingComparator:[self fixedLocaleCaseInsensitiveComparator]]; + NSArray *names = @[([relationship renamingIdentifier] ? [relationship renamingIdentifier] : [relationship name]), ([inverse renamingIdentifier] ? [inverse renamingIdentifier] : [inverse name])]; return [NSString stringWithFormat:@"ecd_%@",[names componentsJoinedByString:@"_"]]; } /// Create columns for both object IDs. @returns YES if the relationship.entity was first