In the tutorials I am following and a lot of more places I see this, onUpgrade -> drop table if exists, then recreate table.
What is the purpose of this?
<
I agree when you upgrade you should be adding columns or adding tables to your database. Most of the onupgrade samples actually suck because why am I deleting all this data then recreating the table? I found this blog entry I call it the Adams Incremental Update Method. It also handles situations where users may have not upgraded your app with each release.
Here is a good blog on sqlite onupgrade that doesn't do drop table.