With every upgrade there is some change in database schema? The change could alteration of column types or addition/deletion of columns.
This forces a reinstall of app ie., uninstall older version and then download app again from the android market.
Is there a best practice to follow so that old data is copied during app installation and reinitialized with newer schemas?
在SqliteOpenHelper的实现中重写方法onUpgrade()
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.