简体   繁体   中英

Is it recommended to always versioning Core Data's data model?

Predictably, my app won't have changes in its data model in future updates, but just in case... will it be a problem to deliver the first version of the app without having set its Model Version, and then starting setting it in subsequent app versions only if migrations needed? Or should I deliver the first version of the app having already set a Model Version?

Thanks

Yes, maybe you don't need enable versioning in the first version.

BUT, for example, if you enable it in the second version, and forgot change CoreData initializing code?

I prefer add automatic version migrating since first version of app, even if I don't plan to change model

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM