onUpgrade is invoked only when SQLiteOpenHelper cunstructor's version
paremeter is greater than when the database was created at first.

In my app (pl.skyman.autobuser) I have constant field for "current"
database version and in onUpgrade I compare oldVersion and newVersion
with values from past to make step by step upgrade.

Skyman

On 13 Lip, 21:11, VRAQ <[email protected]> wrote:
> I changed my database schema on my application to include an
> additional column in one of the tables.  I did this in the onUpgrade
> method in the DBHelper.
>
> Then I tried exporting my signed application and reinstalling it using
> the 'adb install -r <app>.apk' command to try and 'simulate' an
> application upgrade, but onUpgrade never gets called.
>
> Is there a command that I can use to try and duplicate the behavior of
> an application upgrade?
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to