mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 23:53:42 +08:00
Migrate extensions in upgrade script
This commit is contained in:
parent
91c5cef521
commit
4419b6d6b1
|
@ -52,5 +52,19 @@ class UpgradeCommand extends Command
|
||||||
foreach ($migrator->getNotes() as $note) {
|
foreach ($migrator->getNotes() as $note) {
|
||||||
$this->info($note);
|
$this->info($note);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$extensions = $this->container->make('Flarum\Support\ExtensionManager');
|
||||||
|
|
||||||
|
$migrator = $extensions->getMigrator();
|
||||||
|
|
||||||
|
foreach ($extensions->getInfo() as $extension) {
|
||||||
|
$this->info('Upgrading extension: '.$extension->name);
|
||||||
|
|
||||||
|
$extensions->enable($extension->name);
|
||||||
|
|
||||||
|
foreach ($migrator->getNotes() as $note) {
|
||||||
|
$this->info($note);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user