views:

37

answers:

1

I have an sqlite table that I'd like to add a new field to. Would I add the new field directly in sqlite or does the Core Data model change the sqlite table itself?

I'm stuck for some reason right now w/ adding a new field to the db table. thanks for any help.

+2  A: 

You never access the sqlite database directly when using Core Data.

Add the field programmatically with Core Data methods (work on the model), or if using the graphical modeling tool (xcdatamodel file), add it there.

You might need a model migration model, too. Maybe check the Core Data document for Versioning.

Eiko
so, you could have an empty sqlite database and create the table and fields with core data?thanks for your response.
hanumanDev
Now are you using sqlite or Core Data?
Eiko