Check tables before installation in CLI

This commit is contained in:
Pig Fang 2019-03-23 18:57:56 +08:00
parent cd1efcdcfc
commit 84b2a5f0a4

View File

@ -13,6 +13,11 @@ class ExecuteInstallation extends Command
public function handle()
{
if (\App\Http\Controllers\SetupController::checkTablesExist()) {
$this->info('You have installed Blessing Skin Server. Nothing to do.');
return;
}
$this->call('key:random');
$this->call('salt:random');
$this->call('migrate', ['--force' => true]);