mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
feat(DB/Module): introduce module_string table (#19475)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
--
|
||||
DROP TABLE IF EXISTS `module_string`;
|
||||
CREATE TABLE IF NOT EXISTS `module_string` (
|
||||
`module` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'module dir name, eg mod-cfbg',
|
||||
`id` int unsigned NOT NULL,
|
||||
`string` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
PRIMARY KEY (`module`, `id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `module_string_locale`;
|
||||
CREATE TABLE IF NOT EXISTS `module_string_locale` (
|
||||
`module` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'Corresponds to an existing entry in module_string',
|
||||
`id` int unsigned NOT NULL COMMENT 'Corresponds to an existing entry in module_string',
|
||||
`locale` ENUM('koKR', 'frFR', 'deDE', 'zhCN', 'zhTW', 'esES', 'esMX', 'ruRU') NOT NULL,
|
||||
`string` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
PRIMARY KEY (`module`, `id`, `locale`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
DELETE FROM `command` WHERE `name` = 'reload module_string';
|
||||
INSERT INTO `command` (`name`, `security`, `help`) VALUES
|
||||
('reload module_string', 3, 'Syntax: .reload module_string');
|
||||
Reference in New Issue
Block a user