From f7b5046a38d5fc7d768dd1be09b657ed28081612 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Mon, 18 Feb 2019 16:35:39 +0800 Subject: [PATCH] skip db connection check before setup close printempw/blessing-skin-server#133 --- app/Http/Controllers/SetupController.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/SetupController.php b/app/Http/Controllers/SetupController.php index a111036b..bc72403d 100644 --- a/app/Http/Controllers/SetupController.php +++ b/app/Http/Controllers/SetupController.php @@ -241,7 +241,13 @@ class SetupController extends Controller * @param bool $returnExisting * @return bool|array */ - public static function checkTablesExist($tables = [], $returnExistingTables = false) { + public static function checkTablesExist($tables = [], $returnExistingTables = false) + { + if (request()->is('setup') || request()->is('setup/database')) { + // We're ready to install Blessing Skin, so skip the checks. + return false; + } + $existingTables = []; $tables = $tables ?: ['users', 'closets', 'players', 'textures', 'options'];