osx - Will the core data migration mechanism deal with new data on a pre populated entity? -
i have mac application uses core data 1 entity.
this app creates particles quartz , comes variety of particle setups ready use, fire, smoke, comet, etc. these particles saved on entity , shipped user, or in other words, application comes pre populated entity.
this same entity used save particles created user (i have flag set know if particles created user or me).
i update app including more pre populated particles.
the problem every user has saved particles. need new version not mess , add new particles create them.
i know core data mechanism more suited migrate structures data? suspect core data not that, have check database see if new particles there , add them code first time user runs app, right? or there way automatically?
short answer no. migrations structural changes only. not add new data.
the creation of new data or updating of old data ios business decision , outside of scope of migration api.
Comments
Post a Comment