1
votes

I have an iOS app which uses an SQLite database. Sometimes I publish updates of my app.

What happens with the data in the SQLite database of my app? Will the SQLite database be reseted, i.e., reinitialized? Does the SQLite database remains unchanged and also the data until I change something manually?

Edit: I use PhoneGap to create my iOS app and the following SQLite plugin to generate the SQLite database: https://github.com/brodysoft/Cordova-SQLitePlugin The iOS code to generate the SQLite database is here: https://github.com/brodysoft/Cordova-SQLitePlugin/tree/master/src/ios

1
Is the database (file) in your app bundle or created (or copied) on first run and put in the documents folder? If it's the first, it's overwritten.Marcus Adams
Adding to @MarcusAdams comment, ...else it isn't overwritten, nor is any data lost. If you've changed your schema in the new app version, you should be aware of Core Data Model Versioning and Migration Guide: developer.apple.com/library/ios/documentation/Cocoa/Conceptual/…CSmith
Agreed, and Core Data is a different matter entirely, which wasn't mentioned in the question.Marcus Adams
@MarcusAdams Please see my edit. I hope it helps you.confile
@CSmith Please see my edit. I hope it helps you.confile

1 Answers

1
votes

Yes, its clear your SQLite Database completely. I already done it before using this cordova plugin, it wipe all my data. https://github.com/brodysoft/Cordova-SQLitePlugin