onUpgrade

protected abstract fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, newVersion: Int): Boolean

upgrade all tables

Return

false is upgrade is not possible => do drop / create

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