diff --git a/sql/migrations/20240512091319_world.sql b/sql/migrations/20240512091319_world.sql new file mode 100644 index 00000000000..7456ae33adf --- /dev/null +++ b/sql/migrations/20240512091319_world.sql @@ -0,0 +1,21 @@ +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`='20240512091319'); +IF v = 0 THEN +INSERT INTO `migrations` VALUES ('20240512091319'); +-- Add your query below. + + +-- Fix Blackwing Technician loot exploit. +UPDATE `creature_groups` SET `flags`=6 WHERE `leader_guid` IN (59768, 59771, 84542, 84557, 84558, 84625, 84840, 300979, 300980); + + +-- End of migration. +END IF; +END?? +DELIMITER ; +CALL add_migration(); +DROP PROCEDURE IF EXISTS add_migration;