project-imas / encrypted-core-data

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

Fixes for migration bugs #262

Closed Chm closed 7 years ago

Chm commented 7 years ago

Database created before pull request #248 has been shipped to my users with (null) column names. Sub entity changes were ignored during a migration, leaving some columns missing and not updatable again.

These two patches first scan ALL tables for missing columns/tables with old model, then handle sub entity changes during migration.

Chm commented 7 years ago

Moved table check in migration block to fix PasswordTests failure, which had no entity in model.