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 <cursoragent@cursor.com>
This commit is contained in:
@@ -1,5 +1,21 @@
|
|||||||
-- DB update 2023_08_12_02 -> 2023_08_13_00
|
-- 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;
|
DELETE FROM `event_scripts` WHERE `id` = 14376;
|
||||||
|
|
||||||
UPDATE `gameobject_template` SET `AIName` = 'SmartGameObjectAI' WHERE `entry` = 185220;
|
UPDATE `gameobject_template` SET `AIName` = 'SmartGameObjectAI' WHERE `entry` = 185220;
|
||||||
|
|||||||
Reference in New Issue
Block a user