Database version code is independent of application version code.

As for upgrading, you SqlOpenHelper.onUpgrade is passed both old (existing)
and new (desired) version codes, so it knows just what columns to add.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

22.10.2010 1:36 пользователь "Fabio" <[email protected]> написал:

Hi, here is my doubt:

Time 1)
Application version code 1 and database version 1: creates database
structure. Published without errors.

Time 2)
Application version code 2 and database version 2: some ALTER TABLE
(added some columns). Published without errors, and application
upgrades without errors.

Time 3) very close to Time 2)
Application version code 3 and database version 3: some other ALTER
TABLE (added columns).

If I publish version 3, what does it happen to a user that did not
upgrade from version 1 to version 2? What happens to their database?
In other words, is there a way the market has to keep track of the
application versions and install the right version for the specific
user? If not, how can I know if all my "version 1 users" had already
upgraded to version 2?

Thanks in advance,

Fabio

--
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]<android-developers%[email protected]>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
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