Eager Beaver
Eager Beaver

Reputation: 989

Is database updated at the time of updating an App

I have an App in my Device, that contains database, if I update that app from the App Store, then database of App will be updated or it uses the same database of previous App.

Upvotes: 1

Views: 99

Answers (2)

Giuseppe Garassino
Giuseppe Garassino

Reputation: 2292

If you stored your data in NSDocumentDirectory or NSLibraryDirectory, your data are still there after updating your app and until the app is deleted.

Upvotes: 2

Deviator
Deviator

Reputation: 688

The database of app will be updated only and only if you have modified the .sqlite file in your app and then you are replacing the previous one with the same name. Hope it helps!

Upvotes: 0

Related Questions