Re: Z_OPT field in coredata sqlite database. What it is for?
Re: Z_OPT field in coredata sqlite database. What it is for?
- Subject: Re: Z_OPT field in coredata sqlite database. What it is for?
- From: Ben Stiglitz <email@hidden>
- Date: Thu, 4 Oct 2007 11:37:46 -0700
I need to insert new info in a coredata DB as part of an incremental
migration process. If I want to implement those migrations in
"coredata terms" I'm going to need also the corresponding data
models for each incremented version. Even worst, If I really wanna
feel like in the "every day work" with those old mounted models, I'm
gonna need also the corresponding versions of the customized
entities (I'm not using instances of NSManagedObject but instances
of subclasses of it). Instead of that, I'm implementing the
migrations processes using SQL. From time to time, when the
development activities take us to the stage or situation where the
data model structure or pre-initialized data for the application
changes, we only need to implement a migration from the previous
stage to the new one.
CoreData could always end up changing the schema under you, and then
you’re stuck. You’ll have a lot more luck using CoreData to do this.
Check out the bleepsoft migration code:
http://opensource.bleepsoft.com/index.php/Main/DataMigration
http://maccode.googlecode.com/svn/trunk/Snippets/CoreData/
An article about the code and migration in general:
http://outerlevel.com/blog/2007/04/13/handle-core-data-model-changes/
There are also plenty of answers in developer blog posts and the
archives of this list.
-Ben_______________________________________________
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