As the Apple documentation says
Schema migration using matching models is not supported (easy migration is supported).
I was interested to learn about the options that we have if we need to deal with fonctionnality and the display of the iCloud model ... I know that I will need to change my Core Data model in the future in order to add functionality to my application (and not only in an easy way). The fact is that I canβt say what new entities will be needed and what relationships with previous model objects will be established.
I thought of this sequence:
1 - Launching an application migrating the mapping of my underlying data model
2 - Allows you to sync it with iCloud
This will work if iCloud contains transaction log files adapted to the new model. In the case of old transaction log files (tools adapted to the old model), it will not be executed.
To avoid this, I thought about this:
1 - Launching my application that allows me to sync it with iCloud
2 - Performing a display migration of my underlying data model
3 - Delete old iCloud data updating it with a new
This will not work if iCloud already contains updated transaction log files (tools adapted to the new model).
I need a way to check if transaction logs in iCloud are compatible with my current kernel data model. Is there any way to do this?
Thanks.
source share