From 5610824e968a15aead5a9807ae1cfca99104fe47 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 26 Sep 2018 23:03:48 +0200 Subject: [PATCH] migrate: Use existing public API to filter extensions --- framework/core/src/Database/Console/MigrateCommand.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/framework/core/src/Database/Console/MigrateCommand.php b/framework/core/src/Database/Console/MigrateCommand.php index 6340b3d67..1e0f1b051 100644 --- a/framework/core/src/Database/Console/MigrateCommand.php +++ b/framework/core/src/Database/Console/MigrateCommand.php @@ -67,11 +67,7 @@ class MigrateCommand extends AbstractCommand $extensions = $this->container->make('Flarum\Extension\ExtensionManager'); $extensions->getMigrator()->setOutput($this->output); - foreach ($extensions->getExtensions() as $name => $extension) { - if (! $extension->isEnabled()) { - continue; - } - + foreach ($extensions->getEnabledExtensions() as $name => $extension) { $this->info('Migrating extension: '.$name); $extensions->migrate($extension);