mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
DirectorDeploymentLog: use predefined aliases...
...to avoid problems with too much intelligence in deeper db abstraction layers
This commit is contained in:
parent
dcecba0098
commit
1555d049f2
@ -75,8 +75,10 @@ class DirectorDeploymentLog extends DbObject
|
|||||||
{
|
{
|
||||||
$db = $connection->getDbAdapter();
|
$db = $connection->getDbAdapter();
|
||||||
$query = $db->select()
|
$query = $db->select()
|
||||||
->from('director_deployment_log', array('c' => $connection->dbHexFunc('config_checksum')))
|
->from(
|
||||||
->where('stage_name = ?');
|
array('l' => 'director_deployment_log'),
|
||||||
|
array('c' => $connection->dbHexFunc('l.config_checksum'))
|
||||||
|
)->where('l.stage_name = ?');
|
||||||
|
|
||||||
return $db->fetchOne($query, $stage);
|
return $db->fetchOne($query, $stage);
|
||||||
}
|
}
|
||||||
@ -85,8 +87,8 @@ class DirectorDeploymentLog extends DbObject
|
|||||||
{
|
{
|
||||||
$db = $connection->getDbAdapter();
|
$db = $connection->getDbAdapter();
|
||||||
$query = $db->select()->from(
|
$query = $db->select()->from(
|
||||||
'director_deployment_log',
|
array('l' => 'director_deployment_log'),
|
||||||
array('id' => 'MAX(id)')
|
array('id' => 'MAX(l.id)')
|
||||||
);
|
);
|
||||||
|
|
||||||
return static::load($db->fetchOne($query), $connection);
|
return static::load($db->fetchOne($query), $connection);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user