iPhone | Core data migration for a new version built from scratch

后端 未结 3 1678
遥遥无期
遥遥无期 2021-01-16 09:26

I am working on an App update and this version is completely built from scratch and has completely new coreData model schema. I need to write coreData

3条回答
  •  心在旅途
    2021-01-16 10:13

    Without the old model schema, you cannot do a migration. Well, that's sort of logical.

    You only perceivable option is to reverse engineer the old model schema and take it from there.

    Then you construct your new schema by adding / deleting / changing entities, attributes and relationships.

    If you can extract the data from the existing store, just write a custom export function and insert it into your brand new core data store.

提交回复
热议问题