nl_tokens: Verifies and changes the version of the database at the same time as doing a schema update with a { @link Ext . device . sqlite . SQLTransaction } instance .
pl_tokens: function ( config ) { if ( config . oldVersion == null ) { Ext . Logger . error ( 'Ext.device.SQLite#changeVersion: You must specify an `oldVersion` of the database.' ) ; return null ; } if ( config . newVersion == null ) { Ext . Logger . error ( 'Ext.device.SQLite#changeVersion: You must specify a `newVersion` of the database.' ) ; return null ; } this . transaction ( Ext . apply ( config , { preflight : function ( ) { return config . oldVersion == this . getVersion ( ) ? null : 'Unable to change version: version mismatch' ; } , postflight : function ( ) { var result = Ext . device . Communicator . send ( { command : 'SQLite#setVersion' , sync : true , databaseId : this . id , <mask> : config . newVersion } ) ; if ( result ) { this . version = config . newVersion ; } } } ) ) ; }