• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Does addition of new entity to data model require migration?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Does addition of new entity to data model require migration?


  • Subject: Does addition of new entity to data model require migration?
  • From: Philip Dow <email@hidden>
  • Date: Wed, 20 Sep 2006 22:32:27 +0200

Looking to the future as I develop my first CoreData app, I'm wondering if I will need to migrate my data set if I add a new class of entity to the model in a later version.

In app version 1 I have an entity named "Resource" which is abstract. A concrete subclass is "FileResource," and a user's CoreData database will contain a number of these items. In version 2 of the app, I may want to add a "URLResource." The database obviously doesn't have any of these yet.

When I add that URLResource subclass to the data model, can I simply replace the model and load the old data set or will I need to migrate the data set to take into account the new entity, although the data set does not contain any instances of this entity and nothing else has changed?

-Phil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Does addition of new entity to data model require migration?
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: rows of pop up button cells with unique menus
  • Next by Date: Address book newbie question
  • Previous by thread: Re: Trying to remove default dock menu items.
  • Next by thread: Re: Does addition of new entity to data model require migration?
  • Index(es):
    • Date
    • Thread