diff --git a/framework/core/src/Install/Console/InstallCommand.php b/framework/core/src/Install/Console/InstallCommand.php index 99721d91e..68802d22c 100644 --- a/framework/core/src/Install/Console/InstallCommand.php +++ b/framework/core/src/Install/Console/InstallCommand.php @@ -161,16 +161,16 @@ class InstallCommand extends AbstractCommand $this->storeConfiguration(); + $resolver = $this->application->make('Illuminate\Database\ConnectionResolverInterface'); + AbstractModel::setConnectionResolver($resolver); + AbstractModel::setEventDispatcher($this->application->make('events')); + $this->runMigrations(); $this->writeSettings(); $this->application->register('Flarum\Core\CoreServiceProvider'); - $resolver = $this->application->make('Illuminate\Database\ConnectionResolverInterface'); - AbstractModel::setConnectionResolver($resolver); - AbstractModel::setEventDispatcher($this->application->make('events')); - $this->seedGroups(); $this->seedPermissions();