DB/Characters: update DB structure

This commit is contained in:
ShinDarth
2016-07-24 01:27:38 +02:00
parent c9610ca0b5
commit e9089ed793
6 changed files with 124 additions and 78 deletions
+2 -2
View File
@@ -293,7 +293,7 @@ void TicketMgr::LoadTickets()
PreparedQueryResult result = CharacterDatabase.Query(stmt);
if (!result)
{
sLog->outString(">> Loaded 0 GM tickets. DB table `gm_tickets` is empty!");
sLog->outString(">> Loaded 0 GM tickets. DB table `gm_ticket` is empty!");
return;
}
@@ -330,7 +330,7 @@ void TicketMgr::LoadSurveys()
_lastSurveyId = 0;
uint32 oldMSTime = getMSTime();
if (QueryResult result = CharacterDatabase.Query("SELECT MAX(surveyId) FROM gm_surveys"))
if (QueryResult result = CharacterDatabase.Query("SELECT MAX(surveyId) FROM gm_survey"))
_lastSurveyId = (*result)[0].GetUInt32();
sLog->outString(">> Loaded GM Survey count from database in %u ms", GetMSTimeDiffToNow(oldMSTime));