project-imas / encrypted-core-data

v2.0 - iOS Core Data encrypted SQLite store using SQLCipher
Other
785 stars 236 forks source link

#313 Migration fails due to Many to Many relation ship tables. Table … #314

Open mailmemani opened 5 years ago

mailmemani commented 5 years ago

As described the issue before, the lightweight migration fails due to Many to Many relation tables.

While migration, Source and Destination table names are different. It might be happening because of sorting the table names array in the tableNameForPreviousRelationship()

Else we have interchange the inverse and relationship names at the tableNameForRelationship()

Both options are resolving the migration crash. I decided to remove the sorting option instead of interchange the inverse and relationship table names.

Thanks