I have an application in the Android Market known as SieveSMS.It basically allows people to block incoming SMS based on rules, just like Outlook does via email.
I change the structure of the database as follows (in the same table)
1) DB Version 2
Adding a New Unread Column
2) DB version 3
Adding a New Exception Column
What happens if people who already have the application but are not upgraded to version 2 and now they see version 3 of the application? How can I make sure that changes in version 2 are also available to people?
In addition to this, what happens if people who have version 2 installed and try to upgrade to version 3. Will onUpgrade give me an error that the βunreadβ column already exists?
Do you think it would be wise to have conditional code in the onUpgrade method based on the current version of the database?
Rupin source share