mirror of
https://github.com/flarum/core.git
synced 2025-10-13 07:54:25 +02:00
Implement proper update process
If the version in the settings table mismatches the code version, then we return a 503 error for all requests coming through index.php and api.php, while admin.php serves up a form prompting for the database password which will run outstanding migrations.
This commit is contained in:
@@ -32,12 +32,9 @@ class Server extends AbstractServer
|
||||
|
||||
$console = new Application('Flarum', $app::VERSION);
|
||||
|
||||
if (! $app->isInstalled()) {
|
||||
$app->register('Flarum\Install\InstallServiceProvider');
|
||||
|
||||
$console->add($app->make('Flarum\Install\Console\InstallCommand'));
|
||||
}
|
||||
$app->register('Flarum\Install\InstallServiceProvider');
|
||||
|
||||
$console->add($app->make('Flarum\Install\Console\InstallCommand'));
|
||||
$console->add($app->make('Flarum\Console\Command\UpgradeCommand'));
|
||||
$console->add($app->make('Flarum\Console\Command\GenerateExtensionCommand'));
|
||||
$console->add($app->make('Flarum\Console\Command\GenerateMigrationCommand'));
|
||||
|
Reference in New Issue
Block a user