Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

android

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

like image 854
alex Avatar asked Mar 22 '23 08:03

alex


1 Answers

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!

like image 174
Bryan Herbst Avatar answered Apr 30 '23 14:04

Bryan Herbst