1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 07:57:46 +02:00

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,10 +68,12 @@ class MigrateCommand extends AbstractCommand
$extensions->getMigrator()->setOutput($this->output);
foreach ($extensions->getEnabledExtensions() as $name => $extension) {
if ($extension->hasMigrations()) {
$this->info('Migrating extension: '.$name);
$extensions->migrate($extension);
}
}
$this->container->make('Flarum\Settings\SettingsRepositoryInterface')->set('version', $this->container->version());