Open gagoyal opened 10 years ago
@gagoyal Unfortunately, support for database migration following a model change hasn't been implemented, and as such, the options you've listed currently have no effect on how ECD behaves. This and other types of migrations are a major bug that's currently on the back burner, but I'm hoping to revisit the issue soon. For now, deleting the database or manual migration are the best two options.
Incremental Store Demo deletes any existing database on app startup to create a consistent basis for the unit tests and the demo itself; both operate on the assumption of an empty initial database. The example project FailedBankCD doesn't do this, and you should see data persisted on multiple builds & runs.
Hi guys, Any update on this issue.
Just try if GSJDataEncryptor solves the purpose. It is also available on github. On Feb 6, 2015 3:36 PM, "PriyankaBhatt" notifications@github.com wrote:
Hi guys, Any update on this issue.
— Reply to this email directly or view it on GitHub https://github.com/project-imas/encrypted-core-data/issues/83#issuecomment-73214262 .
Thanx for the quick reply , but is there any solution if I need to use sql Cipher only.
Hi, Refer line number 35 in file ISDAppDelegate.m of sample Incremental store. If i remove this line, which means i do not delete old DB, the app crashes because persistent store coordinator could not be created.
The only way to launch the app with old DB file is to remove the options NSMigratePersistentStoresAutomaticallyOption : @YES, NSInferMappingModelAutomaticallyOption : @YES
This is not valid for scenarios when we would like to have a new version of model. Please suggest how can i use these options. Either i need to delete DB or remove options. In both cases, I loose functionality to migrate to new modal version.
Gaurav