mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Setup/Fixup
* run TDB checks agains word db as they are supposed to. * fixes #423
This commit is contained in:
@@ -141,10 +141,10 @@ function setup() : void
|
|||||||
$error[] = ' * '.$what.': doesn\'t seem to contain aowow tables!';
|
$error[] = ' * '.$what.': doesn\'t seem to contain aowow tables!';
|
||||||
break;
|
break;
|
||||||
case DB_WORLD:
|
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!';
|
$error[] = ' * '.$what.': doesn\'t seem to contain TrinityCore world tables!';
|
||||||
else if (DB::Aowow()->selectCell('SELECT `cache_id` FROM `version`') < TDB_WORLD_MINIMUM_VER)
|
else if (DB::World()->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).')';
|
$error[] = ' * '.$what.': TDB world db is structurally outdated! (min rev.: '.CLI::bold(TDB_WORLD_MINIMUM_VER).')';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// no further checks at this time
|
// no further checks at this time
|
||||||
|
|||||||
Reference in New Issue
Block a user