Sharath
Sharath

Reputation: 969

Core Data migration with multiple models

I have a iOS app that uses CoreData. The app which is live on the Apple Store, has V1 of my model and I have since upgraded to V2 using the standard technique of adding a new model via UI etc.

The app with V2 is not live yet and is being used by a few people for testing. There are some more changes to V2 which will obviously result in a V3 model.

My question is, if I go live with both V2 and V3 versions of the model, will the upgrade go through successfully.

Upvotes: 3

Views: 392

Answers (1)

Sharath
Sharath

Reputation: 969

It is possible to do multiple light weight migrations.

I have V1 of my model.. Then added a new entity for V2 and made that the current model. After that I added a new model V3, and added a new attribute to the new entity created in V2.

Upvotes: 1

Related Questions