fix(Core/Ticket): close & resolve by console -1 (#5326)
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
INSERT INTO `version_db_characters` (`sql_rev`) VALUES ('1618660143408049500');
|
||||||
|
|
||||||
|
ALTER TABLE `gm_ticket`
|
||||||
|
CHANGE COLUMN `closedBy` `closedBy` INT NOT NULL DEFAULT 0 COMMENT '-1 Closed by Console, >0 GUID of GM' AFTER `lastModifiedTime`,
|
||||||
|
CHANGE COLUMN `resolvedBy` `resolvedBy` INT NOT NULL DEFAULT 0 COMMENT '-1 Resolved by Console, >0 GUID of GM' AFTER `needMoreHelp`;
|
||||||
@@ -79,7 +79,7 @@ void GmTicket::SaveToDB(SQLTransaction& trans) const
|
|||||||
stmt->setFloat (++index, _posY);
|
stmt->setFloat (++index, _posY);
|
||||||
stmt->setFloat (++index, _posZ);
|
stmt->setFloat (++index, _posZ);
|
||||||
stmt->setUInt32(++index, uint32(_lastModifiedTime));
|
stmt->setUInt32(++index, uint32(_lastModifiedTime));
|
||||||
stmt->setInt32 (++index, _closedBy.GetCounter());
|
stmt->setInt32 (++index, int32(_closedBy.GetCounter()));
|
||||||
stmt->setUInt32(++index, _assignedTo.GetCounter());
|
stmt->setUInt32(++index, _assignedTo.GetCounter());
|
||||||
stmt->setString(++index, _comment);
|
stmt->setString(++index, _comment);
|
||||||
stmt->setString(++index, _response);
|
stmt->setString(++index, _response);
|
||||||
@@ -87,7 +87,7 @@ void GmTicket::SaveToDB(SQLTransaction& trans) const
|
|||||||
stmt->setUInt8 (++index, uint8(_escalatedStatus));
|
stmt->setUInt8 (++index, uint8(_escalatedStatus));
|
||||||
stmt->setBool (++index, _viewed);
|
stmt->setBool (++index, _viewed);
|
||||||
stmt->setBool (++index, _needMoreHelp);
|
stmt->setBool (++index, _needMoreHelp);
|
||||||
stmt->setInt32 (++index, _resolvedBy.GetCounter());
|
stmt->setInt32 (++index, int32(_resolvedBy.GetCounter()));
|
||||||
|
|
||||||
CharacterDatabase.ExecuteOrAppend(trans, stmt);
|
CharacterDatabase.ExecuteOrAppend(trans, stmt);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user