3

新しいフェッチ リクエスト テンプレートをコア データ モデルに追加したいと考えています。プログラムで実行できることはわかっていますが、他のすべてのフェッチ リクエスト テンプレートはコア データ エディターに存在するため、それらと一緒に新しいテンプレートを追加することは理にかなっています。

私の質問は、これはかなり前からストアにあるアプリのポイント リリースの一部であるため、既存のインストールが中断される可能性はありますか? それはある種の移行としてカウントされますか? もちろん、QA を行いますが、事前に答えを知りたいのですが、これまでのところ、グーグル検索は役に立ちませんでした。

4

1 に答える 1

1

It's not stated explicitly anywhere, but in the NSManagedObjectModel documentation, it says the following:

Changing Models

Since a model describes the structure of the data in a persistent store, changing any parts of a model that alters the schema renders it incompatible with (and so unable to open) the stores it previously created. If you change your schema, you therefore need to migrate the data in existing stores to new version (see Core Data Model Versioning and Data Migration Programming Guide). For example, if you add a new entity or a new attribute to an existing entity, you will not be able to open old stores; if you add a validation constraint or set a new default value for an attribute, you will be able to open old stores.

It doesn't explicitly mention fetch requests, but these don't have anything to do with the schema, so I think you'll be fine.

于 2013-11-12T16:02:11.577 に答える