Re: Alter Table Equivalent in Core Data?
Re: Alter Table Equivalent in Core Data?
- Subject: Re: Alter Table Equivalent in Core Data?
- From: Mike Abdullah <email@hidden>
- Date: Mon, 20 Jul 2009 22:35:16 +0100
The only way to do this is through migration:
http://devworld.apple.com/documentation/Cocoa/Conceptual/CoreDataVersioning/index.html
On 20 Jul 2009, at 21:33, Squ Aire wrote:
Using plain SQLite one can use alter table to add/remove table
columns after the table has been created.
In the same (or not the same) way, is it somehow possible to
dynamically add attributes to an entity? This would, among other
things, involve that when a new attribute is added, all existing MOs
(and their persistent counterparts; what are they called again?)
will now respond properly to that new attribute. And when an
attribute is removed, it gets gracefully deleted from all MOs (and
their persistent counterparts; am I even using the correct words
over here? I hope you get my point).
_________________________________________________________________
With Windows Live, you can organize, edit, and share your photos.
http://www.microsoft.com/middleeast/windows/windowslive/products/photo-gallery-edit.aspx_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden