Change SQLite Database Version Number

北城以北 提交于 2019-11-28 20:08:35

To manually update the version to 4 you execute the following SQL statement:

PRAGMA user_version = 4

You can also set it via the setVersion SqlLiteDatabase method.

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

Another way to change the version of your Sqlite Database. You can use DB Browser for SQLite:

  1. Open the database file with "DB Browser for SQLite".
  2. Change the "User Version" number to whatever number you want
  3. Click the "Save" button

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!