gpt4 book ai didi

ios - 核心数据迁移 : How should i change the data type from bool to int in next version

转载 作者:行者123 更新时间:2023-11-29 10:32:51 25 4
gpt4 key购买 nike

我的担忧:

  1. 该应用在 App Store 中的数据模型版本为 3。
  2. 到目前为止,我使用和工作的是轻量级迁移。
  3. 现在我添加了带有新实体和属性的版本 4。
  4. 但我只需要将版本 3 中的一个属性的数据类型更改为版本 4 中的 Int。

查询:那么我应该如何解决这个问题呢?轻量级迁移是否仍然有效或需要手动进行。请对此提出建议。谢谢

最佳答案

没有尝试,但由于 BOOL 和 int 都在内部保存为 NSNumber,轻量级迁移应该可以工作。

关于ios - 核心数据迁移 : How should i change the data type from bool to int in next version,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28721104/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com