-
Book Overview & Buying
-
Table Of Contents
Core Data iOS Essentials
An exception is thrown if Core Data finds that the persistent store is incompatible with the current data model. To solve this problem, we use a concept called Migration, which tells Core Data to move data from the old persistent store to a new one that matches the current data model. Migrations are of two types: Lightweight and Standard. Lightweight migration is easy to achieve (requires no coding) and is used when small modifications are applied to our data model that includes adding or removing attributes from an entity, adding or deleting an existing entity from the data mode, and so on. Whereas Standard migration is a bit complicated to implement as it requires creation of a mapping model and coding to inform Core Data to move the data from the old persistent store to the new one. The standard migration is out of scope of this book. We will only discuss lightweight migration in this book.
To implement lightweight migration...
Change the font size
Change margin width
Change background colour