From 83456f318ce5f9bcaf8598e7bd8316d6b3119a94 Mon Sep 17 00:00:00 2001 From: shindarth Date: Wed, 23 Mar 2016 21:48:12 +0000 Subject: [PATCH] Fix PvPstats table to fit with its web app --- src/game/BattleGround/BattleGround.cpp | 2 +- src/shared/revision.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/BattleGround/BattleGround.cpp b/src/game/BattleGround/BattleGround.cpp index 49ee08f5..d4c6aa57 100644 --- a/src/game/BattleGround/BattleGround.cpp +++ b/src/game/BattleGround/BattleGround.cpp @@ -807,7 +807,7 @@ void BattleGround::EndBattleGround(Team winner) { static SqlStatementID insPvPstatsPlayer; BattleGroundScoreMap::iterator score = m_PlayerScores.find(itr->first); - SqlStatement stmt = CharacterDatabase.CreateStatement(insPvPstatsPlayer, "INSERT INTO pvpstats_players (battleground_id, player_guid, score_killing_blows, score_deaths, score_honorable_kills, score_bonus_honor, score_damage_done, score_healing_done, attr_1, attr_2, attr_3, attr_4, attr_5) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); + SqlStatement stmt = CharacterDatabase.CreateStatement(insPvPstatsPlayer, "INSERT INTO pvpstats_players (battleground_id, character_guid, score_killing_blows, score_deaths, score_honorable_kills, score_bonus_honor, score_damage_done, score_healing_done, attr_1, attr_2, attr_3, attr_4, attr_5) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); stmt.addUInt32(battleground_id); stmt.addUInt32(plr->GetGUIDLow()); diff --git a/src/shared/revision.h b/src/shared/revision.h index 472b7679..2a6ddfc2 100644 --- a/src/shared/revision.h +++ b/src/shared/revision.h @@ -32,9 +32,9 @@ #define REALMD_DB_UPDATE_DESCRIPTION "dbdocs update" #define CHAR_DB_VERSION_NR 21 - #define CHAR_DB_STRUCTURE_NR 4 + #define CHAR_DB_STRUCTURE_NR 5 #define CHAR_DB_CONTENT_NR 1 - #define CHAR_DB_UPDATE_DESCRIPTION "match_client_limits" + #define CHAR_DB_UPDATE_DESCRIPTION "characters_pvpstats" #define WORLD_DB_VERSION_NR 21 #define WORLD_DB_STRUCTURE_NR 6