dhaval
dhaval

Reputation: 2388

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

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?

Upvotes: 1

Views: 448

Answers (1)

Vladimir Ivanov
Vladimir Ivanov

Reputation: 43088

within your implementation of SqliteOpenHelper override method onUpgrade().

Upvotes: 1

Related Questions