alex
alex

Reputation: 301

What happens with the database after app update from app store?

What happens after app upgrade, will it keep the database from previous version or flush out all data?

Upvotes: 5

Views: 1412

Answers (1)

Bryan Herbst
Bryan Herbst

Reputation: 67189

All application data (including stored files, SharedPreferences, and SQLite databases) is kept during updates.

Note that the SQLiteOpenHelper also provides an onUpgrade() method that you can use to upgrade the SQLite database when the database's schema changes. Do not confuse this with application upgrades though!

Upvotes: 8

Related Questions