SQLite data after updating app

Hi all,

I have a question, we have found an issue with our released app for iOS, now I need to create an update and rerelease, does anyone know if the data that is currently in the DB will be stored, or will the DB also be recreated.

The reason I ask is, that we persist some data that will be sent to a server and some of this data is now failing because of this issue. Will this data be available after updating?

Regards

Hi , add “IF NOT EXISTS” to your sql request

myDB.execSQL("CREATE TABLE IF NOT EXISTS "
     + TableName
     + " (Field1 VARCHAR, Field2 INT(3));");

So technically speaking, the database file never gets deleted, only the tables if you don’t check for them?