mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-16 18:30:29 +00:00
add (db\gm cmd): CM DB Logging\GM CM Display
added counter measure report type in database added new row when using .anticheat player to show deployed counter measures on player as some countermeasures will not count the actual cheat count in the db
This commit is contained in:
38
sql/updates/characters/AC_2023_04_05_00.sql
Normal file
38
sql/updates/characters/AC_2023_04_05_00.sql
Normal file
@@ -0,0 +1,38 @@
|
||||
-- run on Characters DB
|
||||
|
||||
DROP PROCEDURE IF EXISTS `updatemodanticheatdb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updatemodanticheatdb()
|
||||
proc:BEGIN
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'daily_players_reports' AND COLUMN_NAME = 'counter_measures_reports';
|
||||
IF @COLEXISTS = 1 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
|
||||
ALTER TABLE `daily_players_reports`
|
||||
ADD COLUMN `counter_measures_reports` BIGINT UNSIGNED NOT NULL DEFAULT 0 AFTER `op_ack_hack_reports`;
|
||||
|
||||
END //
|
||||
DELIMITER ;
|
||||
|
||||
CALL updatemodanticheatdb();
|
||||
|
||||
DROP PROCEDURE IF EXISTS `updatemodanticheatdb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updatemodanticheatdb()
|
||||
proc:BEGIN
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'players_reports_status' AND COLUMN_NAME = 'counter_measures_reports';
|
||||
IF @COLEXISTS = 1 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
|
||||
ALTER TABLE `players_reports_status`
|
||||
ADD COLUMN `counter_measures_reports` BIGINT UNSIGNED NOT NULL DEFAULT 0 AFTER `op_ack_hack_reports`;
|
||||
|
||||
END //
|
||||
DELIMITER ;
|
||||
|
||||
CALL updatemodanticheatdb();
|
||||
DROP PROCEDURE IF EXISTS `updatemodanticheatdb`;
|
||||
Reference in New Issue
Block a user