Skip to content

Commit

Permalink
fix(DB): Collation error (azerothcore#18204)
Browse files Browse the repository at this point in the history
* fix(DB): Collation error

* closes azerothcore#18202

* Update 2024_01_20_06.sql
  • Loading branch information
Kitzunu authored Jan 21, 2024
1 parent 835b6ac commit fa8a9d6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/sql/base/db_world/item_dbc.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down
2 changes: 1 addition & 1 deletion data/sql/base/db_world/lfgdungeons_dbc.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down
2 changes: 1 addition & 1 deletion data/sql/updates/db_world/2024_01_20_06.sql
Original file line number Diff line number Diff line change
@@ -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';
5 changes: 5 additions & 0 deletions data/sql/updates/pending_db_world/rev_1705789020183035200.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--
ALTER TABLE `item_dbc`
COLLATE='utf8mb4_unicode_ci';
ALTER TABLE `lfgdungeons_dbc`
COLLATE='utf8mb4_unicode_ci';

0 comments on commit fa8a9d6

Please sign in to comment.