开发者

How to manage database changes while upgrading application versions in android?

开发者 https://www.devze.com 2023-02-01 13:22 出处:网络
With every upgrade there is some change in database schema? 开发者_StackOverflow社区The change could alteration of column types or addition/deletion of columns.

With every upgrade there is some change in database schema? 开发者_StackOverflow社区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?


within your implementation of SqliteOpenHelper override method onUpgrade().

0

精彩评论

暂无评论...
验证码 换一张
取 消