From 84b2a5f0a49db41a1d3f72bd6ef4a872a5ba6f56 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sat, 23 Mar 2019 18:57:56 +0800 Subject: [PATCH] Check tables before installation in CLI --- app/Console/Commands/ExecuteInstallation.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Console/Commands/ExecuteInstallation.php b/app/Console/Commands/ExecuteInstallation.php index f645cdf2..26122cd5 100644 --- a/app/Console/Commands/ExecuteInstallation.php +++ b/app/Console/Commands/ExecuteInstallation.php @@ -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]);