Re: Core Data PersistentStore woes with SQLite
Re: Core Data PersistentStore woes with SQLite
- Subject: Re: Core Data PersistentStore woes with SQLite
- From: Scott Stevenson <email@hidden>
- Date: Tue, 14 Nov 2006 16:09:43 -0800
On Nov 14, 2006, at 6:20 AM, Elise van Looij wrote:
Until this is fixed (it might be something really simple) I seems
to me that it would be best to stick to the NSXMLStoreType when
still doing a lot of experimenting in the datamodel.
That's basically true.
If you use SQLite, the tables are created once. If you change your
model, the database will be out of sync.
It would, of course, be nice if changing the model made the database
"just work," but it's actually not an easy thing from Apple's
perspective. I think they've heard loud and clear that it needs to
get better, though.
Here's the official doc which describes the situation:
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
Articles/cdVersioning.html>
Core Recipes also contains an example of migration. It's not totally
simple but it is possible. You obviously already know where to find
this code, but just for the archives:
<http://developer.apple.com/samplecode/CoreRecipes/>
- Scott
_______________________________________________
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