LimeSurvey API - Master branch

Update_609 extends DatabaseUpdateBase
in package

Base class for database migration, inspired by Yii.

See more info in README file in same folder.

Table of Contents

Properties

$db  : CDbConnection
$newVersion  : int
$options  : string

Methods

__construct()  : mixed
getVersion()  : int
Get db version number based on class name, e.g. 123 for Update_123
safeUp()  : void
Runs up() wrapped in a transaction.
up()  : mixed
This is the function that must be implemented by the child classes.
fruityTwentyThreeInsertConfigData()  : array<string|int, mixed>
fruityTwentyThreeMetaData()  : array<string|int, mixed>
fruityTwentyThreeUpdateConfigData()  : array<string|int, mixed>
installFruityTwentyThree()  : mixed
updateVersion()  : mixed
Sets DBVersion in settings global to $this->newVersion Last thing that happens before transaction commit in every update.

Properties

Methods

__construct()

public __construct(CDbConnection $connection, string $options) : mixed
Parameters
$connection : CDbConnection
$options : string

Specific database options like ENGINE=INNODB etc

getVersion()

Get db version number based on class name, e.g. 123 for Update_123

public getVersion() : int
Return values
int

safeUp()

Runs up() wrapped in a transaction.

public safeUp() : void

Will rollback transaction and re-throw exception at failure.

Tags
throws
Throwable

up()

This is the function that must be implemented by the child classes.

public up() : mixed
Tags
inheritDoc
throws
CException

fruityTwentyThreeInsertConfigData()

private fruityTwentyThreeInsertConfigData() : array<string|int, mixed>
Return values
array<string|int, mixed>

fruityTwentyThreeMetaData()

private fruityTwentyThreeMetaData() : array<string|int, mixed>
Return values
array<string|int, mixed>

fruityTwentyThreeUpdateConfigData()

private fruityTwentyThreeUpdateConfigData() : array<string|int, mixed>
Return values
array<string|int, mixed>

installFruityTwentyThree()

private installFruityTwentyThree() : mixed
Tags
throws
CException

updateVersion()

Sets DBVersion in settings global to $this->newVersion Last thing that happens before transaction commit in every update.

private updateVersion() : mixed

        
On this page

Search results