Only say that we're migrating an extension if it has migrations

This commit is contained in:
Toby Zerner 2018-11-14 16:41:36 +10:30
parent b26eb8e609
commit 2c1be86857

View File

@ -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());