From ce0e57e390e9f020b9279fc939e1c49662acb81e Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Mon, 10 Jun 2024 21:05:20 +0200 Subject: [PATCH] Setup/Fixup * run TDB checks agains word db as they are supposed to. * fixes #423 --- setup/tools/clisetup/setup.func.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup/tools/clisetup/setup.func.php b/setup/tools/clisetup/setup.func.php index 793e4bf7..043b8ab6 100644 --- a/setup/tools/clisetup/setup.func.php +++ b/setup/tools/clisetup/setup.func.php @@ -141,10 +141,10 @@ function setup() : void $error[] = ' * '.$what.': doesn\'t seem to contain aowow tables!'; break; case DB_WORLD: - if (!DB::Aowow()->selectCell('SHOW TABLES LIKE ?', 'version')) + if (!DB::World()->selectCell('SHOW TABLES LIKE ?', 'version')) $error[] = ' * '.$what.': doesn\'t seem to contain TrinityCore world tables!'; - else if (DB::Aowow()->selectCell('SELECT `cache_id` FROM `version`') < TDB_WORLD_MINIMUM_VER) - $error[] = ' * '.$what.': TCDB world db is structurally outdated! (min rev.: '.CLI::bold(TDB_WORLD_MINIMUM_VER).')'; + else if (DB::World()->selectCell('SELECT `cache_id` FROM `version`') < TDB_WORLD_MINIMUM_VER) + $error[] = ' * '.$what.': TDB world db is structurally outdated! (min rev.: '.CLI::bold(TDB_WORLD_MINIMUM_VER).')'; break; default: // no further checks at this time