Files
moonwell-core-vanilla/sql/migrations/20230123070823_world.sql
T

23 lines
643 B
SQL

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`='20230123070823');
IF v=0 THEN
INSERT INTO `migrations` VALUES ('20230123070823');
-- Add your query below.
-- Change faction of Ritual Candle Aura to one that is hostile to mobs but friendly to players.
-- This is a server side trap, so it's not sniffable, and true faction is unknown.
UPDATE `gameobject_template` SET `faction`=250 WHERE `entry`=179688;
-- End of migration.
END IF;
END??
delimiter ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;