Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/helpers/deployment_helper.php
Show First 20 Lines • Show All 371 Lines • ▼ Show 20 Line(s) | |||||
* Runs database upgrade script | * Runs database upgrade script | ||||
* | * | ||||
* @return bool | * @return bool | ||||
* @access private | * @access private | ||||
*/ | */ | ||||
private function upgradeDatabase() | private function upgradeDatabase() | ||||
{ | { | ||||
$this->loadAppliedRevisions(); | $this->loadAppliedRevisions(); | ||||
$this->Conn->errorHandler = Array (&$this, 'handleSqlError'); | $this->Conn->setErrorHandler(array(&$this, 'handleSqlError')); | ||||
$this->out('Verifying Database Revisions ... '); | $this->out('Verifying Database Revisions ... '); | ||||
if ( !$this->collectDatabaseRevisions() || !$this->checkRevisionDependencies() ) { | if ( !$this->collectDatabaseRevisions() || !$this->checkRevisionDependencies() ) { | ||||
return false; | return false; | ||||
} | } | ||||
$this->displayStatus('OK'); | $this->displayStatus('OK'); | ||||
▲ Show 20 Lines • Show All 357 Lines • Show Last 20 Lines |