From 617859b1fb9da0578ec0cbb85a4ced023530a0d7 Mon Sep 17 00:00:00 2001 From: ratkosrb Date: Tue, 15 Oct 2024 11:30:18 +0300 Subject: [PATCH] Add missing relations for quest Mortal Champions. --- sql/migrations/20241015082928_world.sql | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sql/migrations/20241015082928_world.sql diff --git a/sql/migrations/20241015082928_world.sql b/sql/migrations/20241015082928_world.sql new file mode 100644 index 00000000000..2f4a88f7b65 --- /dev/null +++ b/sql/migrations/20241015082928_world.sql @@ -0,0 +1,22 @@ +DROP PROCEDURE IF EXISTS add_migration; +DELIMITER ?? +CREATE PROCEDURE `add_migration`() +BEGIN +DECLARE v INT DEFAULT 1; +SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20241015082928'); +IF v = 0 THEN +INSERT INTO `migrations` VALUES ('20241015082928'); +-- Add your query below. + + +-- Add missing relations for quest Mortal Champions. +INSERT INTO `creature_questrelation` (`id`, `quest`, `patch_min`) VALUES (15503, 8579, 7); +INSERT INTO `creature_involvedrelation` (`id`, `quest`, `patch_min`) VALUES (15503, 8579, 7); + + +-- End of migration. +END IF; +END?? +DELIMITER ; +CALL add_migration(); +DROP PROCEDURE IF EXISTS add_migration;