Change SQLite Database Version Number

后端 未结 3 863
日久生厌
日久生厌 2020-12-14 06:35

I have a database that I built in SQLite browser, and it works fine. I launched an app with a prebuilt database and now I want to add more tables and data to that database.

3条回答
  •  没有蜡笔的小新
    2020-12-14 07:10

    You can also set it via the setVersion SqlLiteDatabase method.

    Source: http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#setVersion(int)

提交回复
热议问题