Re: Core Data versioning woes
Re: Core Data versioning woes
- Subject: Re: Core Data versioning woes
- From: mmalc crawford <email@hidden>
- Date: Sun, 10 Aug 2008 18:50:14 -0700
On Aug 10, 2008, at 6:12 PM, Steve Steinitz wrote:
ps. one special problem I have is that I don't want the migration to
happen automatically because four users share the same database.
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreDataVersioning/Articles/vmInitiating.html#//apple_ref/doc/uid/TP40005509-SW2
>
"If your application does support versioning and you choose to use
custom version skew detection and migration bootstrapping, before
opening a store you should check (using
isConfiguration:compatibleWithStoreMetadata:) whether its schema is
compatible with the coordinator’s model: if it is, you can use
addPersistentStoreWithType:configuration:URL:options:error: to open
the store directly; if it is not, you must migrate the store first
then open it (again
usingaddPersistentStoreWithType:configuration:URL:options:error:)."
mmalc
_______________________________________________
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