Skip to content

Commit

Permalink
Merge pull request #201 from totten/master-up
Browse files Browse the repository at this point in the history
UpgradeDbCommand - Fix failure to upgrade extensions on Standalone/WP
  • Loading branch information
totten authored Jun 25, 2024
2 parents 4b611f8 + c59f6e2 commit 838fd67
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Command/UpgradeDbCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,11 @@ protected function sendMessages(string $postUpgradeMessageFile, string $codeVer)
}

protected function runExtensionUpgrade(bool $isFirstTry): int {
// `cv upgrade:db` started with CIVICRM_UPGRADE_ACTIVE, which means that the system
// booted with a narrow dispatch policy (preventing extensions from mucking with core-upgrade).
// But we've now decided we don't need full core-upgrade. So we can use an ordinary environment.
\Civi::dispatcher()->setDispatchPolicy(NULL);

$input = $this->input;
$output = $this->output;

Expand Down

0 comments on commit 838fd67

Please sign in to comment.