Db: show pending deployments when never deployed
This commit is contained in:
parent
471dea40ca
commit
ead2bf8fb0
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue