How to update table schema after an app upgrade on Android?

后端 未结 1 1818
遥遥无期
遥遥无期 2020-12-16 21:41

I have an unfinished application, but I want to address now the future update of it.

Suppose my app was upgraded, so when starts, detects that the database schema is

相关标签:
1条回答
  • 2020-12-16 22:32

    SQLiteOpenHelper is your friend here.

    You need to supply onCreate and onUpgrade methods.

    0 讨论(0)
提交回复
热议问题