Android - SQLite Database - App update -
so got sqlite database (version 7) stores data app (version 1.0) , want fix few bugs (that have nothing database). happens if update app version 1.1? data deleted? or deleted if update databse version 8?
(my onupgrade in databasehandler delete existing databse , create new 1 way)
upgrading app not database. old data files kept intact.
changing version number in code sqliteopenhelper
cause onupgrade()
called if version number in database file lower. doesn't delete anything, if delete data (as say), lost.
see also: when sqliteopenhelper oncreate() / onupgrade() run?
Comments
Post a Comment