From 4c999bee3f540fcf095a373d4e174bae055c3134 Mon Sep 17 00:00:00 2001 From: Dawnforger Date: Sat, 9 May 2026 00:49:08 -0500 Subject: [PATCH] fix(db_world): add creature_summon_groups.Comment before 2023_08_13_00 Column was added in old/8.x SQL but not in the archive chain; idempotent ALTER matches 2023_01_31_01 so INSERT using Comment succeeds on archive-only installs. Co-authored-by: Cursor --- data/sql/archive/db_world/2023_08_13_00.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/data/sql/archive/db_world/2023_08_13_00.sql b/data/sql/archive/db_world/2023_08_13_00.sql index bb10eb6..c093f0f 100644 --- a/data/sql/archive/db_world/2023_08_13_00.sql +++ b/data/sql/archive/db_world/2023_08_13_00.sql @@ -1,5 +1,21 @@ -- DB update 2023_08_12_02 -> 2023_08_13_00 -- +SET @csg_comment_exists := ( + SELECT COUNT(*) + FROM INFORMATION_SCHEMA.COLUMNS + WHERE TABLE_SCHEMA = DATABASE() + AND TABLE_NAME = 'creature_summon_groups' + AND COLUMN_NAME = 'Comment' +); +SET @sql := IF( + @csg_comment_exists > 0, + 'SELECT 1', + 'ALTER TABLE `creature_summon_groups` ADD COLUMN `Comment` varchar(255) NOT NULL DEFAULT '''' AFTER `summonTime`' +); +PREPARE stmt FROM @sql; +EXECUTE stmt; +DEALLOCATE PREPARE stmt; + DELETE FROM `event_scripts` WHERE `id` = 14376; UPDATE `gameobject_template` SET `AIName` = 'SmartGameObjectAI' WHERE `entry` = 185220;