Files
moonwell-core-vanilla/sql/migrations/20231223004507_world.sql

25 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`='20231223004507');
IF v=0 THEN
INSERT INTO `migrations` VALUES ('20231223004507');
-- Add your query below.
-- Magenta Cap Clusters can contain up to 6 Magenta Fungus Cap but on 3 different slots.
DELETE FROM `gameobject_loot_template` WHERE `entry`=5212;
INSERT INTO `gameobject_loot_template` (`entry`, `item`, `ChanceOrQuestChance`, `groupid`, `mincountOrRef`, `maxcount`, `condition_id`, `patch_min`, `patch_max`) VALUES (5212, 8047, -100, 0, 1, 1, 0, 0, 10);
INSERT INTO `gameobject_loot_template` (`entry`, `item`, `ChanceOrQuestChance`, `groupid`, `mincountOrRef`, `maxcount`, `condition_id`, `patch_min`, `patch_max`) VALUES (5212, 30576, 100, 0, -30576, 2, 0, 0, 10);
INSERT INTO `reference_loot_template` (`entry`, `item`, `ChanceOrQuestChance`, `groupid`, `mincountOrRef`, `maxcount`, `condition_id`, `patch_min`, `patch_max`) VALUES (30576, 8047, 50, 0, 1, 2, 0, 0, 10);
-- End of migration.
END IF;
END??
delimiter ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;