Files
moonwell-core-vanilla/sql/migrations/20260327084639_world.sql
2026-03-29 11:07:32 +01:00

70 lines
5.6 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`='20260327084639');
IF v = 0 THEN
INSERT INTO `migrations` VALUES ('20260327084639');
-- Add your query below.
SET @PTEMPLATE = 4595;
DELETE FROM `pool_pool` WHERE `pool_id` IN (14294, 14299, 14292, 14300, 17183, 14288);
UPDATE `pool_template` SET `description` = 'Gold Vein / Mithril Deposit / Truesilver Deposit - Winterspring - Group 1' WHERE `entry` IN (14294, 14299, 14292, 14300, 17183, 14288);
UPDATE `pool_gameobject` SET `description` = 'Gold Vein / Mithril Deposit / Truesilver Deposit - Winterspring - Group 1' WHERE `pool_entry` IN (14294, 14299, 14292, 14300, 17183, 14288);
INSERT INTO `pool_template` (`entry`, `max_limit`, `description`, `flags`, `instance`, `patch_min`, `patch_max`) VALUES
(@PTEMPLATE+1, 1, 'Gold Vein / Mithril Deposit / Truesilver Deposit - Winterspring - Group 1 - Master', 0, 0, 0, 10);
INSERT INTO `pool_pool` (`pool_id`, `mother_pool`, `chance`, `description`, `flags`) VALUES
(14294, @PTEMPLATE+1, 0, 'Winterspring - Group 1 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0),
(14299, @PTEMPLATE+1, 0, 'Winterspring - Group 1 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0),
(14292, @PTEMPLATE+1, 0, 'Winterspring - Group 1 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0),
(14300, @PTEMPLATE+1, 0, 'Winterspring - Group 1 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0),
(17183, @PTEMPLATE+1, 0, 'Winterspring - Group 1 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0),
(14288, @PTEMPLATE+1, 0, 'Winterspring - Group 1 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0);
DELETE FROM `pool_pool` WHERE `pool_id` IN (17184, 17185, 14291, 14287, 14290);
UPDATE `pool_template` SET `description` = 'Gold Vein / Mithril Deposit / Truesilver Deposit - Winterspring - Group 2' WHERE `entry` IN (17184, 17185, 14291, 14287, 14290);
UPDATE `pool_gameobject` SET `description` = 'Gold Vein / Mithril Deposit / Truesilver Deposit - Winterspring - Group 2' WHERE `pool_entry` IN (17184, 17185, 14291, 14287, 14290);
INSERT INTO `pool_template` (`entry`, `max_limit`, `description`, `flags`, `instance`, `patch_min`, `patch_max`) VALUES
(@PTEMPLATE+2, 1, 'Gold Vein / Mithril Deposit / Truesilver Deposit - Winterspring - Group 2 - Master', 0, 0, 0, 10);
INSERT INTO `pool_pool` (`pool_id`, `mother_pool`, `chance`, `description`, `flags`) VALUES
(17184, @PTEMPLATE+2, 0, 'Winterspring - Group 2 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0),
(17185, @PTEMPLATE+2, 0, 'Winterspring - Group 2 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0),
(14291, @PTEMPLATE+2, 0, 'Winterspring - Group 2 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0),
(14287, @PTEMPLATE+2, 0, 'Winterspring - Group 2 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0),
(14290, @PTEMPLATE+2, 0, 'Winterspring - Group 2 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0);
DELETE FROM `pool_pool` WHERE `pool_id` IN (14301, 14293, 17186, 14289, 14286, 5329);
UPDATE `pool_template` SET `description` = 'Gold Vein / Mithril Deposit / Truesilver Deposit - Winterspring - Group 3' WHERE `entry` IN (14301, 14293, 17186, 14289, 14286, 5329);
UPDATE `pool_gameobject` SET `description` = 'Gold Vein / Mithril Deposit / Truesilver Deposit - Winterspring - Group 3' WHERE `pool_entry` IN (14301, 14293, 17186, 14289, 14286, 5329);
INSERT INTO `pool_template` (`entry`, `max_limit`, `description`, `flags`, `instance`, `patch_min`, `patch_max`) VALUES
(@PTEMPLATE+3, 1, 'Gold Vein / Mithril Deposit / Truesilver Deposit - Winterspring - Group 3 - Master', 0, 0, 0, 10);
INSERT INTO `pool_pool` (`pool_id`, `mother_pool`, `chance`, `description`, `flags`) VALUES
(14301, @PTEMPLATE+3, 0, 'Winterspring - Group 3 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0),
(14293, @PTEMPLATE+3, 0, 'Winterspring - Group 3 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0),
(17186, @PTEMPLATE+3, 0, 'Winterspring - Group 3 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0),
(14289, @PTEMPLATE+3, 0, 'Winterspring - Group 3 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0),
(14286, @PTEMPLATE+3, 0, 'Winterspring - Group 3 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0),
(5329, @PTEMPLATE+3, 0, 'Winterspring - Group 3 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0);
DELETE FROM `pool_pool` WHERE `pool_id` IN (14298, 14297, 14295, 14296);
UPDATE `pool_template` SET `description` = 'Gold Vein / Mithril Deposit / Truesilver Deposit - Winterspring - Group 4' WHERE `entry` IN (14298, 14297, 14295, 14296);
UPDATE `pool_gameobject` SET `description` = 'Gold Vein / Mithril Deposit / Truesilver Deposit - Winterspring - Group 4' WHERE `pool_entry` IN (14298, 14297, 14295, 14296);
INSERT INTO `pool_template` (`entry`, `max_limit`, `description`, `flags`, `instance`, `patch_min`, `patch_max`) VALUES
(@PTEMPLATE+4, 1, 'Gold Vein / Mithril Deposit / Truesilver Deposit - Winterspring - Group 4 - Master', 0, 0, 0, 10);
INSERT INTO `pool_pool` (`pool_id`, `mother_pool`, `chance`, `description`, `flags`) VALUES
(14298, @PTEMPLATE+4, 0, 'Winterspring - Group 4 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0),
(14297, @PTEMPLATE+4, 0, 'Winterspring - Group 4 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0),
(14295, @PTEMPLATE+4, 0, 'Winterspring - Group 4 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0),
(14296, @PTEMPLATE+4, 0, 'Winterspring - Group 4 - Gold Vein / Mithril Deposit / Truesilver Deposit', 0);
DELETE FROM `pool_template` WHERE `entry` = 1234;
-- End of migration.
END IF;
END??
DELIMITER ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;