mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
Implemented account_muted and feature mutehistory command (#753)
* Implemented account_muted and feature mutehistory command. * Added some Syntax. * Fix sql_rev
This commit is contained in:
@@ -5,7 +5,7 @@ CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
SELECT COUNT(*) INTO @COLEXISTS
|
||||
FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2017_12_08_00';
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2017_11_21_00';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2017_11_21_00 2017_12_08_00 bit;
|
||||
|
||||
13
data/sql/updates/pending_db_auth/rev_1515646234610593200.sql
Normal file
13
data/sql/updates/pending_db_auth/rev_1515646234610593200.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
INSERT INTO version_db_auth (`sql_rev`) VALUES ('1515646234610593200');
|
||||
|
||||
DROP TABLE IF EXISTS `account_muted`;
|
||||
|
||||
CREATE TABLE `account_muted` (
|
||||
`guid` INT(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
|
||||
`mutedate` INT(10) UNSIGNED NOT NULL DEFAULT '0',
|
||||
`mutetime` INT(10) UNSIGNED NOT NULL DEFAULT '0',
|
||||
`mutedby` VARCHAR(50) NOT NULL,
|
||||
`mutereason` VARCHAR(255) NOT NULL,
|
||||
PRIMARY KEY (`guid`, `mutedate`)
|
||||
)
|
||||
COMMENT='mute List' ENGINE=InnoDB;
|
||||
@@ -0,0 +1,5 @@
|
||||
INSERT INTO version_db_world (`sql_rev`) VALUES ('1515648036333645900');
|
||||
|
||||
/* Create the command. */
|
||||
DELETE FROM `command` WHERE `name` = "mutehistory";
|
||||
INSERT INTO `command` (`name`,`security`,`help`) VALUES ('mutehistory', 2, "Syntax: .mutehistory $accountName. Shows mute history for an account.");
|
||||
Reference in New Issue
Block a user