diff --git a/sql/migrations/20240407052628_world.sql b/sql/migrations/20240407052628_world.sql new file mode 100644 index 00000000000..e89a8784a65 --- /dev/null +++ b/sql/migrations/20240407052628_world.sql @@ -0,0 +1,27 @@ +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`='20240407052628'); +IF v = 0 THEN +INSERT INTO `migrations` VALUES ('20240407052628'); +-- Add your query below. + + +-- Fix bypassing Rajaxx's captains. +INSERT INTO `creature_linking_template` (`entry`, `map`, `master_entry`, `flag`, `search_range`) VALUES (15385, 509, 15341, 1, 150); +INSERT INTO `creature_linking_template` (`entry`, `map`, `master_entry`, `flag`, `search_range`) VALUES (15386, 509, 15341, 1, 150); +INSERT INTO `creature_linking_template` (`entry`, `map`, `master_entry`, `flag`, `search_range`) VALUES (15389, 509, 15341, 1, 150); +INSERT INTO `creature_linking_template` (`entry`, `map`, `master_entry`, `flag`, `search_range`) VALUES (15391, 509, 15341, 1, 150); +INSERT INTO `creature_linking_template` (`entry`, `map`, `master_entry`, `flag`, `search_range`) VALUES (15392, 509, 15341, 1, 150); +INSERT INTO `creature_linking_template` (`entry`, `map`, `master_entry`, `flag`, `search_range`) VALUES (15390, 509, 15341, 1, 150); +INSERT INTO `creature_linking_template` (`entry`, `map`, `master_entry`, `flag`, `search_range`) VALUES (15388, 509, 15341, 1, 150); + + +-- End of migration. +END IF; +END?? +DELIMITER ; +CALL add_migration(); +DROP PROCEDURE IF EXISTS add_migration;