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

Popular posts from this blog

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -