mirror of
https://github.com/flarum/framework.git
synced 2025-02-22 19:56:24 +08:00
Only say that we're migrating an extension if it has migrations
This commit is contained in:
parent
b26eb8e609
commit
2c1be86857
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user