Re: Automatic data migration across two revisions
Re: Automatic data migration across two revisions
- Subject: Re: Automatic data migration across two revisions
- From: Jerry Krinock <email@hidden>
- Date: Sun, 28 Sep 2014 23:01:56 -0700
> On 2014 Sep 28, at 22:21, Rick Mann <email@hidden> wrote:
>
> Does the migration proceed in stages? That is, does it migrate version 5 -> 7 by first migrating 5 -> 6 and then 6 -> 7?
No.
> Or do I have to add yet another mapping model and classes to go from 5->7?
Yes, or add your own code to do what you expect, which has been called "Sequential Migrations”. There is a class (SSYPersistentDocumentMultiMigrator) on my github.com repo which I wrote to do this a few years ago, and I also read somewhere that Sequential Migrations are covered in Marcus Zarra’s book.
_______________________________________________
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