Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0616d6a

Browse files
authored
Propagate option negations to updatedb:status (#3863)
1 parent ad4025d commit 0616d6a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/Commands/core/UpdateDBCommands.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,12 @@ public function updatedb($options = ['cache-clear' => true, 'entity-updates' =>
5050
}
5151
}
5252

53-
$updatedb_options = [
54-
'entity-updates' => $options['entity-updates'],
55-
'post-updates' => $options['post-updates'],
53+
$status_options = [
54+
// @see https://github.com/drush-ops/drush/pull/3855.
55+
'no-entity-updates' => !$options['entity-updates'],
56+
'no-post-updates' => !$options['post-updates'],
5657
];
57-
$process = $this->processManager()->drush($this->siteAliasManager()->getSelf(), 'updatedb:status', [], $updatedb_options);
58+
$process = $this->processManager()->drush($this->siteAliasManager()->getSelf(), 'updatedb:status', [], $status_options);
5859
$process->mustRun();
5960
if ($output = $process->getOutput()) {
6061
// We have pending updates - let's run em.
@@ -348,8 +349,10 @@ public static function updateFinished($success, $results, $operations)
348349
}
349350

350351

351-
/**
352+
/**
352353
* Start the database update batch process.
354+
* @param $options
355+
* @return bool
353356
*/
354357
public function updateBatch($options)
355358
{

0 commit comments

Comments
 (0)