Skip to content

Commit

Permalink
Address initial population of Plugin Registry (CFM-462)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Aug 16, 2025
1 parent bbabb69 commit 881980e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/Command/DatabaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ public function execute(Arguments $args, ConsoleIo $io) {
// want to skip this with -n since most of the time the database won't be empty.
$Plugins = TableRegistry::getTableLocator()->get('Plugins');

// If we're dealing with a brand new installation, the Plugin Registry will be empty,
// and even core Plugins won't be returned here, so we need to sync it here. (This will
// also handle the case of upgrading when a new core Plugin is introduced.)

$Plugins->syncPluginRegistry();

// AR-Plugin-6 Only apply schemas from active plugins
$activePlugins = $Plugins->find('active')->all();

Expand Down

0 comments on commit 881980e

Please sign in to comment.