Reputation: 2388
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
Reputation: 43088
within your implementation of SqliteOpenHelper override method onUpgrade()
.
Upvotes: 1