changeVersion


Purpose

Allows scripts to atomically verify the database version number and change it at the same time as doing a schema update.

Signature

changeVersion(oldVersion, newVersion, callback, errorCallback, successCallback)

Returns

This method does not return anything.

Parameter

Name Description Type
callback An object containing the transaction callback invoked with the SQLTransaction object that represents the transaction. SQLTransactionCallback
errorCallback An optional callback object containing a method to be called when an SQL error occurs. SQLTransactionErrorCallback
newVersion The new database version. String
oldVersion The old database version. String
successCallback An optional callback object containing a method to be called when an SQL statement is executed successfully. SQLVoidCallback

Related topics

SQLStorage.Database
Overview
Web SQL Database
Legal notice | Copyright © 2016 and Confidential to Pegasystems Inc. All rights reserved
PDN | Hybrid Container | Feedback
Advanced...