I have read many posts about this in the last hour, but I don’t see an exact answer to the following problem.
I plan to perform another data migration for my application as follows:
version 1 - original data model
version 2 - new model with user matching and auxiliary method
version 3 - new model with simple matching (several attributes and relationships added)
For version 2, I used the NSMigratePersistentStoresAutomaticallyOption parameter. For version 3, I would like to add the NSInferMappingModelAutomaticallyOption option, since I do not need a matching model, since the transformation is a “lightweight migration”.
However, since version 2 has user migration, will the "internal logic" of the application know that version 2 should use a custom mapping model, even if the NSInferMappingModelAutomaticallyOption option is added for the latest version (version 3)?
I see that there are ways to check version information and register it for testing. I also have a version-controlled application, so I can test the conversion from version 1 to 2 to 3.
However, I would like to receive feedback from a design point of view, because I want to be 100% sure that I will not ruin this :-)
I appreciate any feedback.
source
share