updateTableNameAndAddColumns

open fun updateTableNameAndAddColumns(db: SQLiteDatabase, oldName: String, newName: String, columns: Array<String>)

Updates the given table with a new name and adds columns if any.

Parameters

db

Database to update

oldName

Old name of the table to be renamed, null if table should not be renamed.

newName

New name of the table to be renamed, null if table should not be renamed.

columns

Columns to add. Null if no new columns should be added.