Files
moonwell-core-vanilla/sql/migrations/20201129150128_world.sql
T
ratkosrb 80309e43fb Essence of the Red should be removed by Divine Shield.
Swapping one spell data hack for another. Limited Invulnerability Potion does not remove it, but Divine Shield does.
2020-11-29 17:05:13 +02:00

25 lines
573 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`='20201129150128');
IF v=0 THEN
INSERT INTO `migrations` VALUES ('20201129150128');
-- Add your query below.
-- Remove attributes hack from Essence of the Red.
DELETE FROM `spell_mod` WHERE `ID`=23513;
-- Hack school instead.
UPDATE `spell_template` SET `school`=1 WHERE `entry`=23513;
-- End of migration.
END IF;
END??
delimiter ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;