I'm currently upgrading an older iPhone flashcard application that uses two SQLite dbs (one with read-only questions that can only be updated by app updates, deletion of cards, addition of cards, updates to cards, and another one where user added their own custom cards) to use Core Data instead. The only property for the "Flashcard" object that distinguishes between a read only card and user added card is the "isCustom" property. Here are the steps that I believe are necessary to do this:
(First update from 2 SQLite dbs to CoreData)
- Get all custom card entries from the user custom card db.
- Add new Core Data object model with read only cards, and then load in user added custom cards to this model.
- Delete old SQLite databases (custom card db and read only card db).
(Updates in the future that will already have a Core Data model)
- Get all custom cards from the current Core Data persistent store.
- Migrate all custom cards to new Core Data persistent store.
I just want to make sure if this is the way to go before I start designing this system from the ground up. Any tips will be greatly appreciated.