From 8b34fc670da5c37b50dd20b7cc1c33b5e0946975 Mon Sep 17 00:00:00 2001 From: Winfidonarleyan Date: Sat, 8 Jul 2023 20:29:50 +0700 Subject: [PATCH] feat(DB): add support warhead db --- src/ProgressionSystem.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ProgressionSystem.cpp b/src/ProgressionSystem.cpp index af53d3c1..1ebb84b5 100644 --- a/src/ProgressionSystem.cpp +++ b/src/ProgressionSystem.cpp @@ -33,7 +33,7 @@ class ProgressionSystemLoadingDBUpdates : public DatabaseScript { LOG_INFO("server.server", "Loading mod-progression-system updates..."); - if (DBUpdater::IsEnabled(updateFlags)) + if (DBUpdater::IsEnabled(LoginDatabase, updateFlags)) { if (sConfigMgr->GetOption("ProgressionSystem.ReapplyUpdates", false)) { @@ -43,11 +43,11 @@ class ProgressionSystemLoadingDBUpdates : public DatabaseScript std::vector loginDatabaseDirectories = GetDatabaseDirectories("auth"); if (!loginDatabaseDirectories.empty()) { - DBUpdater::Update(LoginDatabase, &loginDatabaseDirectories); + DBUpdater::Update(LoginDatabase, &loginDatabaseDirectories); } } - if (DBUpdater::IsEnabled(updateFlags)) + if (DBUpdater::IsEnabled(CharacterDatabase, updateFlags)) { if (sConfigMgr->GetOption("ProgressionSystem.ReapplyUpdates", false)) { @@ -57,11 +57,11 @@ class ProgressionSystemLoadingDBUpdates : public DatabaseScript std::vector charactersDatabaseDirectories = GetDatabaseDirectories("characters"); if (!charactersDatabaseDirectories.empty()) { - DBUpdater::Update(CharacterDatabase, &charactersDatabaseDirectories); + DBUpdater::Update(CharacterDatabase, &charactersDatabaseDirectories); } } - if (DBUpdater::IsEnabled(updateFlags)) + if (DBUpdater::IsEnabled(WorldDatabase, updateFlags)) { if (sConfigMgr->GetOption("ProgressionSystem.ReapplyUpdates", false)) { @@ -71,7 +71,7 @@ class ProgressionSystemLoadingDBUpdates : public DatabaseScript std::vector worldDatabaseDirectories = GetDatabaseDirectories("world"); if (!worldDatabaseDirectories.empty()) { - DBUpdater::Update(WorldDatabase, &worldDatabaseDirectories); + DBUpdater::Update(WorldDatabase, &worldDatabaseDirectories); } } }