仅添加新实体是否需要核心日期迁移 [英] Does only adding a new Entity require Core Date Migration

查看:38
本文介绍了仅添加新实体是否需要核心日期迁移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个已经使用Core Data的应用程序,现在我想向Core Data添加一个具有其自身属性的新实体.这样做时,我不会触摸任何其他实体.

I have an app that already uses Core Data and I now would like to add a new Entity with its own attributes to Core Data. When doing this, I will not be touching any other Entities.

我认为这将需要核心数据迁移;但是,添加此实体后,我的应用仍然可以正常工作,没有出现核心数据问题.

I would assume that this would require Core Data Migration; however, upon adding this Entity, my app still appears to work correctly with no Core Data issues.

我很高兴继续迁移数据,只是不想浪费时间,如果不需要的话.

I am happy to proceed with migrating my data, I just do not want to waste my time doing so if it is not required.

推荐答案

它不需要手动迁移.

  1. 为数据模型添加新版本.
  2. 将新实体添加到新实体模型.
  3. 选择新的数据模型作为当前模型.

这篇关于仅添加新实体是否需要核心日期迁移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆