aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorModoX <moardox@gmail.com>2023-04-05 23:49:46 +0200
committerGitHub <noreply@github.com>2023-04-05 23:49:46 +0200
commit36044a9470e9c39a71916e908ab6cf4f95677793 (patch)
treef3c6997cf2f58c6d2f20e2c074d7ed0a4e2915db /sql
parentc1c04fe73bfbc232170b4d14b2f84637f3705dc5 (diff)
Core/Creature: Added possibility to give creatures multiple gossip menu ids and control them via conditions (#28159)
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/master/9999_99_99_00_world.sql12
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/updates/world/master/9999_99_99_00_world.sql b/sql/updates/world/master/9999_99_99_00_world.sql
new file mode 100644
index 00000000000..7287d23d45b
--- /dev/null
+++ b/sql/updates/world/master/9999_99_99_00_world.sql
@@ -0,0 +1,12 @@
+--
+DROP TABLE IF EXISTS `creature_template_gossip`;
+CREATE TABLE `creature_template_gossip` (
+ `CreatureID` int UNSIGNED NOT NULL,
+ `MenuID` int UNSIGNED NOT NULL,
+ `VerifiedBuild` int NOT NULL DEFAULT 0,
+ PRIMARY KEY (`CreatureID`, `MenuID`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+
+INSERT INTO `creature_template_gossip` SELECT `entry`, `gossip_menu_id`, `VerifiedBuild` FROM `creature_template` WHERE `gossip_menu_id` <> 0;
+
+ALTER TABLE `creature_template` DROP COLUMN `gossip_menu_id`;