mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
refactor(Core/Motd): Move motd from conf to db (#15111)
This commit is contained in:
11
data/sql/updates/pending_db_auth/rev_1676759011048897700.sql
Normal file
11
data/sql/updates/pending_db_auth/rev_1676759011048897700.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
--
|
||||
DROP TABLE IF EXISTS `motd`;
|
||||
CREATE TABLE `motd` (
|
||||
`realmid` INT NOT NULL,
|
||||
`text` LONGTEXT NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`realmid`)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
DELETE FROM `motd` WHERE `realmid`=1;
|
||||
INSERT INTO `motd` (`realmid`, `text`) VALUES
|
||||
(-1, 'Welcome to an AzerothCore server.');
|
||||
@@ -0,0 +1,9 @@
|
||||
--
|
||||
DELETE FROM `command` WHERE `name` = 'reload motd';
|
||||
INSERT INTO `command` (`name`, `security`, `help`) VALUES
|
||||
('reload motd', 3, 'Syntax: .reload motd
|
||||
Reload motd table.');
|
||||
|
||||
UPDATE `command` SET `help`='Syntax: .server set motd $realmId $MOTD\r\n\r\nSet server Message of the day for the specified realm.' WHERE `name`='server set motd';
|
||||
|
||||
UPDATE `acore_string` SET `content_default`='Message of the day in realm %i changed to:\r\n%s', `locale_deDE`='Nachricht des Tages in Realm %i wurde geändert zu:\r\n%s', `locale_zhCN`='每日消息更改为 in realm %i:\r\n%s' WHERE `entry`=1101;
|
||||
Reference in New Issue
Block a user