From 67f7b8d3956895b23b267bbaf21a45931b4e57ba Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 14 Nov 2018 16:41:36 +1030 Subject: [PATCH] Only say that we're migrating an extension if it has migrations --- framework/core/src/Database/Console/MigrateCommand.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/framework/core/src/Database/Console/MigrateCommand.php b/framework/core/src/Database/Console/MigrateCommand.php index 25bf51cbe..c4db5168d 100644 --- a/framework/core/src/Database/Console/MigrateCommand.php +++ b/framework/core/src/Database/Console/MigrateCommand.php @@ -68,9 +68,11 @@ class MigrateCommand extends AbstractCommand $extensions->getMigrator()->setOutput($this->output); foreach ($extensions->getEnabledExtensions() as $name => $extension) { - $this->info('Migrating extension: '.$name); + if ($extension->hasMigrations()) { + $this->info('Migrating extension: '.$name); - $extensions->migrate($extension); + $extensions->migrate($extension); + } } $this->container->make('Flarum\Settings\SettingsRepositoryInterface')->set('version', $this->container->version());