mirror of
https://github.com/flarum/core.git
synced 2025-10-11 23:14:29 +02:00
Fix incorrect migration notes for extensions without any migrations
When running migrations for an extension without any migrations (eg. BBCode), the migration notes for the previous extension were being displayed, because the Migrator never had a chance to clear them.
This commit is contained in:
@@ -69,8 +69,6 @@ class MigrateCommand extends AbstractCommand
|
||||
|
||||
$extensions = $this->container->make('Flarum\Extension\ExtensionManager');
|
||||
|
||||
$migrator = $extensions->getMigrator();
|
||||
|
||||
foreach ($extensions->getExtensions() as $name => $extension) {
|
||||
if (! $extension->isEnabled()) {
|
||||
continue;
|
||||
@@ -78,9 +76,9 @@ class MigrateCommand extends AbstractCommand
|
||||
|
||||
$this->info('Migrating extension: '.$name);
|
||||
|
||||
$extensions->migrate($extension);
|
||||
$notes = $extensions->migrate($extension);
|
||||
|
||||
foreach ($migrator->getNotes() as $note) {
|
||||
foreach ($notes as $note) {
|
||||
$this->info($note);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user