4

I have changed my core data model quite extensively. There are loads of question how to migrate the old data into the new model, however i don't need to migrate anything.

I just would like to replace the current Core Data instance. How can this be done?

johan
  • 6,578
  • 6
  • 46
  • 68

1 Answers1

5

I'm going to assume you're using a persistant store coordinator with NSSQLiteStoreType. Just change the name of the url for your persistant store coordinator. If the previous version used a url called MyApp.sqlite, change it to MyAppVersionX.sqlite.

Besi
  • 22,579
  • 24
  • 131
  • 223
bbarnhart
  • 6,620
  • 1
  • 40
  • 60