DB/Characters: update DB structure
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user