Android cannot upgrade my database when first query is using readonly database

前端 未结 3 1455
轻奢々
轻奢々 2021-01-16 06:14

So I\'ve been so far relying heavily on the automated (well almost) onCreate / onUpgrade method of my SQLite database. It was all work

3条回答
  •  孤独总比滥情好
    2021-01-16 06:41

    Workaround I used: have a method at the "start" of my application that does just getWritableDatabase() and closes it, so that it triggers all the needed create / update if necessary.

提交回复
热议问题