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: "Gustavo Vera" <email@hidden>
- Date: Thu, 4 Oct 2007 15:03:44 -0300
I knew that that question would arrive sooner or later… :)
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.
When the app is deployed, the app support folder is analyzed to see the
version of the previous DB (if there is one) and then, executes incremental
upgrades until the DB gets fully updated to the current version.
This schema is a recent implementation in our project (until now, there is
only three incremental migrations implemented, dispersed in aprox. 40 svn
revisions), but (until now) is working flawlessly.
On 10/4/07, Ben Stiglitz <email@hidden> wrote:
>
> > I need to populate with SQL a table in one coredata's sqlite
> > database, but I
> > can't find info about the field Z_OPT, which appears in almost every
> > table.
> > The meaning and functionality to populate all the other fields is
> > clear.
>
> Standard mailing list question: what are you trying to achieve? Why
> not insert the data using the Core Data API itself?
>
> -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