Android update SQLite DB schema? -
what best practice updating db schema? send text file sql commands. app check text file , execute commands needed. guessing have flag indicate update has been done. havent found way delete file in asset folder app, best thing after db updated.
any thoughts on this?
you want override
onupdate(sqlitedatabase db,int old version,int newverison)
the following tutorial can walk through process: http://www.codeproject.com/kb/android/androidsqlite.aspx
Comments
Post a Comment