From fa8a9d65c8fc4baf356437b017d6b179b0a309e8 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Sun, 21 Jan 2024 01:23:45 +0100 Subject: [PATCH] fix(DB): Collation error (#18204) * fix(DB): Collation error * closes https://github.com/azerothcore/azerothcore-wotlk/issues/18202 * Update 2024_01_20_06.sql --- data/sql/base/db_world/item_dbc.sql | 2 +- data/sql/base/db_world/lfgdungeons_dbc.sql | 2 +- data/sql/updates/db_world/2024_01_20_06.sql | 2 +- .../sql/updates/pending_db_world/rev_1705789020183035200.sql | 5 +++++ 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 data/sql/updates/pending_db_world/rev_1705789020183035200.sql diff --git a/data/sql/base/db_world/item_dbc.sql b/data/sql/base/db_world/item_dbc.sql index c5f0561a2..2f4d7617e 100644 --- a/data/sql/base/db_world/item_dbc.sql +++ b/data/sql/base/db_world/item_dbc.sql @@ -26,7 +26,7 @@ CREATE TABLE IF NOT EXISTS `item_dbc` ( `InventoryType` int NOT NULL DEFAULT '0', `SheatheType` int NOT NULL DEFAULT '0', PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table acore_world.item_dbc: ~0 rows (approximately) DELETE FROM `item_dbc`; diff --git a/data/sql/base/db_world/lfgdungeons_dbc.sql b/data/sql/base/db_world/lfgdungeons_dbc.sql index a4dbf9bf1..b1a3f7874 100644 --- a/data/sql/base/db_world/lfgdungeons_dbc.sql +++ b/data/sql/base/db_world/lfgdungeons_dbc.sql @@ -67,7 +67,7 @@ CREATE TABLE IF NOT EXISTS `lfgdungeons_dbc` ( `Description_Lang_Unk` text, `Description_Lang_Mask` int unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table acore_world.lfgdungeons_dbc: ~0 rows (approximately) DELETE FROM `lfgdungeons_dbc`; diff --git a/data/sql/updates/db_world/2024_01_20_06.sql b/data/sql/updates/db_world/2024_01_20_06.sql index 4545c3365..fcb3ac31a 100644 --- a/data/sql/updates/db_world/2024_01_20_06.sql +++ b/data/sql/updates/db_world/2024_01_20_06.sql @@ -1,3 +1,3 @@ -- DB update 2024_01_20_05 -> 2024_01_20_06 -- -UPDATE `command` SET `help`='Syntax: .server set motd Optional($realmId) $MOTD\r\n\r\nSet server Message of the day for the specified $realmId.\r\nIf $realmId is not provided it will update for the current realm.' WHERE `name`='server set motd'; +UPDATE `command` SET `help`='Syntax: .server set motd Optional($realmId) $MOTD\r\n\r\nSet server Message of the day for the specified $realmId.\r\nIf $realmId is not provided it will update for the current realm.\r\nUse $realmId -1 to set motd for all realms.' WHERE `name`='server set motd'; diff --git a/data/sql/updates/pending_db_world/rev_1705789020183035200.sql b/data/sql/updates/pending_db_world/rev_1705789020183035200.sql new file mode 100644 index 000000000..60984c57b --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1705789020183035200.sql @@ -0,0 +1,5 @@ +-- +ALTER TABLE `item_dbc` + COLLATE='utf8mb4_unicode_ci'; +ALTER TABLE `lfgdungeons_dbc` + COLLATE='utf8mb4_unicode_ci';