Core Data, migrate a model split into two files

  • Hi,

    I have a Core Data application, with the model split into
    two .xcdatamodel files, inspired by Chris Hanson at http://chanson.livejournal.com/187540.html
    . The application is only supported on 10.5.

    The application is usd to track patient records and the to xcdatamodel
    files are called "MetaData" and "PatientData".
    In the MetaData model meta data about information collected about
    patients is stored, and in the PatientData model
    the actual patient data is stored. During startup these model files
    are merged into one NSManagedObjectModel
    instance, as described by Chris Hanson.

    Now, I want to update the model and hence migrate the application data.

    I'm familiar with how to migrate a model in the more "normal" case
    where you only have one xcmodeldata file.

    Adding a new version to e.g. the PatientData.xcdatamodel file and
    doing the necessary changes to the model
    is of course easy, but then what? Do I create a regular mapping model,
    or do I have to do the migration
    manually? Or do I have to go back to having the model in only one
    xcdatamodel file?

    Is there anyone who have done this, or have any idea on how to proceed?

    Kind regards
    Dan Waltin