Db: show pending deployments when never deployed

This commit is contained in:
Thomas Gelf 2016-03-13 22:27:47 +01:00
parent 471dea40ca
commit ead2bf8fb0
1 changed files with 2 additions and 2 deletions

View File

@ -30,13 +30,13 @@ class Db extends DbConnection
{ {
$db = $this->db(); $db = $this->db();
$query = 'SELECT COUNT(*) FROM director_activity_log WHERE id > (' $query = 'SELECT COUNT(*) FROM director_activity_log WHERE id > COALESCE(('
. ' SELECT id FROM director_activity_log WHERE checksum = (' . ' SELECT id FROM director_activity_log WHERE checksum = ('
. ' SELECT last_activity_checksum FROM director_generated_config WHERE checksum = (' . ' SELECT last_activity_checksum FROM director_generated_config WHERE checksum = ('
. ' SELECT config_checksum FROM director_deployment_log ORDER by id desc limit 1' . ' SELECT config_checksum FROM director_deployment_log ORDER by id desc limit 1'
. ' )' . ' )'
. ' )' . ' )'
. ')'; . '), 0)';
if ($object !== null) { if ($object !== null) {
$query .= $db->quoteInto(' AND object_type = ?', $object->getTableName()); $query .= $db->quoteInto(' AND object_type = ?', $object->getTableName());