HoststatusQuery: Respect IDO schema version

refs #9009
fixes #9425
This commit is contained in:
Johannes Meyer 2015-06-17 09:05:32 +02:00
parent 95cb6dea4b
commit 486fbd599b
1 changed files with 8 additions and 0 deletions

View File

@ -193,6 +193,14 @@ SQL;
*/
protected function joinBaseTables()
{
if (version_compare($this->getIdoVersion(), '1.10.0', '<')) {
$this->columnMap['hoststatus']['host_check_source'] = '(NULL)';
}
if (version_compare($this->getIdoVersion(), '1.13.0', '<')) {
$this->columnMap['hoststatus']['host_is_reachable'] = '(NULL)';
}
$this->select->from(
array('h' => $this->prefix . 'hosts'),
array()