HOR-1624
database-upgrade .
This commit is contained in:
@@ -88,9 +88,9 @@ class Configurations // extends Configuration
|
||||
}
|
||||
}
|
||||
|
||||
public function exists($cfgID)
|
||||
public function exists($cfgID,$objID='')
|
||||
{
|
||||
return $this->Configuration->exists($cfgID,"",'','','');
|
||||
return $this->Configuration->exists($cfgID,$objID,'','','');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -763,6 +763,9 @@ class workspaceTools
|
||||
$this->checkSequenceNumber();
|
||||
$this->migrateIteeToDummytask($this->name);
|
||||
$this->upgradeConfiguration();
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$this->upgradeAuditLog($this->name);
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
//There records in table "EMAIL_SERVER"
|
||||
$criteria = new Criteria("workflow");
|
||||
@@ -3274,4 +3277,16 @@ class workspaceTools
|
||||
$conf->saveConfig('SKIN_CRON', '');
|
||||
}
|
||||
|
||||
public function upgradeAuditLog($workspace){
|
||||
G::LoadClass("configuration");
|
||||
$conf = new Configurations();
|
||||
if (!$conf->exists('AUDIT_LOG','log')) {
|
||||
CLI::logging("> Updating Auditlog Config \n");
|
||||
$oServerConf = &serverConf::getSingleton();
|
||||
$sAudit = $oServerConf->getAuditLogProperty('AL_OPTION', $workspace);
|
||||
$conf->aConfig = ($sAudit == 1) ? 'true' : 'false';
|
||||
$conf->saveConfig('AUDIT_LOG', 'log');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user