Database.changeVersion method
Database › changeVersion
Unofficial
Change the database version, optionally running a migration transaction.Signature:
changeVersion(oldVersion: string, newVersion: string, callback?: ((transaction: SQLTransaction) => void) | undefined, errorCallback?: ((error: SQLError) => void) | undefined, successCallback?: (() => void) | undefined): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| oldVersion | string | |
| newVersion | string | |
| callback? | ((transaction: SQLTransaction) => void) | undefined | *(Optional)* |
| errorCallback? | ((error: SQLError) => void) | undefined | *(Optional)* |
| successCallback? | (() => void) | undefined | *(Optional)* |
Returns: void