Re: Core Data migration
Re: Core Data migration
- Subject: Re: Core Data migration
- From: Paul Collins <email@hidden>
- Date: Sat, 20 Sep 2008 16:10:17 -0700
Back on March 29 2008, Mr. Wilson reported a problem with migration
that I seem to be having now. To wit, a core data model that includes
an abstract entity and entity inheritance fails to be migrated on OS X
10.5.
I'm getting different errors than he reported. I created a mapping
model from the previous to the new data model. Finding, as Mr. Wilson
did, a empty property mapping involving an abstract entity, I created
a mapping for the abstract entity and related the property mapping to
it.
When I attempt automatic migration
(NSMigratePersistentStoresAutomaticallyOption), I get "Persistent
store migration failed, missing mapping model." Alternatively, when I
manually select the mapping model, NSMappingModel
mappingMOdelFromBundles:forSourceModes:destinationModel: does give me
my mapping model, but migrateStoreFromURL returns an NSError:
Domain=NSCocoaErrorDomain Code=134110 UserInfo=0x80e25b0 "An error
occured during persistent store migration."
If there's a workaround for this, I'd sure love to hear it.
Best regards,
Paul Collins
Gracion Software
_______________________________________________
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