6

I have a lite app on store which uses core data for data persistence, it would be nice if users could migrate their data to the full version of the app after upgrading.

I found this article but it talks only about SQLite databases.

I seem not to find any information about this no where.

Anyone an idea on how to do this ?

Oysio
  • 3,486
  • 6
  • 45
  • 54
  • I found this post in the following link the best for core data migration ... http://stackoverflow.com/questions/2310216/implementation-of-automatic-lightweight-migration-for-core-data-iphone – learner2010 Mar 01 '11 at 19:45

2 Answers2

4

There really is no difference between SQLite and Core Data in this regard. Just copy the file you use as Core Data store as described in the article you linked to.

Ole Begemann
  • 135,006
  • 31
  • 278
  • 256
1

Data migration is covered in detail in the Apple document "Core Data Model Versioning and Data Migration Programming Guide"

Best wishes, xj

ha100
  • 1,563
  • 1
  • 21
  • 28
Max MacLeod
  • 26,115
  • 13
  • 104
  • 132