onUpgrade

open fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, newVersion: Int)

upgrade all tables

Parameters

db

database object

oldVersion

old version of database

newVersion

new version of database

If database version changed, the class will recreate database tables automatically