Files
moonwell-core-vanilla/sql/migrations/20200216130600_world.sql
T
schell244 9b78954601 Corrections for fishing loot patch (#372)
* Removed a few items from fishing loot table, which are part of school loot

* Uppercase letters for commands.

Co-authored-by: ratkosrb <35845488+ratkosrb@users.noreply.github.com>
2020-02-16 18:35:14 +02:00

28 lines
1.1 KiB
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`='20200216130600');
IF v=0 THEN
INSERT INTO `migrations` VALUES ('20200216130600');
-- Add your query below.
DELETE FROM `fishing_loot_template` WHERE (`entry`=284 AND `item`=21153);
DELETE FROM `fishing_loot_template` WHERE (`entry`=1681 AND `item`=21153);
DELETE FROM `fishing_loot_template` WHERE (`entry`=1682 AND `item`=21153);
DELETE FROM `fishing_loot_template` WHERE (`entry`=1681 AND `item`=21150);
DELETE FROM `fishing_loot_template` WHERE (`entry`=1682 AND `item`=21150);
DELETE FROM `fishing_loot_template` WHERE (`entry`=327 AND `item`=6326);
DELETE FROM `fishing_loot_template` WHERE (`entry`=45 AND `item`=6326);
DELETE FROM `fishing_loot_template` WHERE (`entry`=172 AND `item`=6358);
DELETE FROM `fishing_loot_template` WHERE (`entry`=237 AND `item`=6358);
DELETE FROM `fishing_loot_template` WHERE (`entry`=1338 AND `item`=6358);
-- End of migration.
END IF;
END??
delimiter ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;