ios - Confused by how to setup my .xcdatamodel for versioning -
i reading core data model verisoning , data migration programming guide , confused on how set initial verison number.
i have existing app in did not set core data versioning. in addition, using magical record. current version of app 1.3; ready release 1.4 minor changes, , want change 1 of core data entities (add new attributes) in release 1.5. absolutely need versioning users not lose existing data. assume must set current verison enable lightweight versioning release 1.5.
the question is: core data version have match app version? or common way versioning work?
magical record has convenience method this. in appdelegate setup magical record use.
[magicalrecord setupcoredatastackwithautomigratingsqlitestorenamed:@"storename"];
alternatively click on core data .xcdatamodeld top bar editor > add model version
Comments
Post a Comment