65 lines
4.2 KiB
SQL
65 lines
4.2 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`='20260324084200');
|
|
IF v = 0 THEN
|
|
INSERT INTO `migrations` VALUES ('20260324084200');
|
|
-- Add your query below.
|
|
|
|
SET @PTEMPLATE = 4344;
|
|
|
|
DELETE FROM `pool_pool` WHERE `pool_id` IN (6195, 6194, 6192, 6200);
|
|
UPDATE `pool_template` SET `description` = 'Incendicite Mineral Vein - Wetlands - Group 1' WHERE `entry` IN (6195, 6194, 6192, 6200);
|
|
UPDATE `pool_gameobject` SET `description` = 'Incendicite Mineral Vein - Wetlands - Group 1' WHERE `pool_entry` IN (6195, 6194, 6192, 6200);
|
|
INSERT INTO `pool_template` (`entry`, `max_limit`, `description`, `flags`, `instance`, `patch_min`, `patch_max`) VALUES
|
|
(@PTEMPLATE+1, 1, 'Incendicite Mineral Vein - Wetlands - Group 1 - Master', 0, 0, 0, 10);
|
|
INSERT INTO `pool_pool` (`pool_id`, `mother_pool`, `chance`, `description`, `flags`) VALUES
|
|
(6195, @PTEMPLATE+1, 0, 'Wetlands - Group 1 - Incendicite Mineral Vein', 0),
|
|
(6194, @PTEMPLATE+1, 0, 'Wetlands - Group 1 - Incendicite Mineral Vein', 0),
|
|
(6192, @PTEMPLATE+1, 0, 'Wetlands - Group 1 - Incendicite Mineral Vein', 0),
|
|
(6200, @PTEMPLATE+1, 0, 'Wetlands - Group 1 - Incendicite Mineral Vein', 0);
|
|
|
|
DELETE FROM `pool_pool` WHERE `pool_id` IN (6202, 6196, 6197, 6201);
|
|
UPDATE `pool_template` SET `description` = 'Incendicite Mineral Vein - Wetlands - Group 2' WHERE `entry` IN (6202, 6196, 6197, 6201);
|
|
UPDATE `pool_gameobject` SET `description` = 'Incendicite Mineral Vein - Wetlands - Group 2' WHERE `pool_entry` IN (6202, 6196, 6197, 6201);
|
|
INSERT INTO `pool_template` (`entry`, `max_limit`, `description`, `flags`, `instance`, `patch_min`, `patch_max`) VALUES
|
|
(@PTEMPLATE+2, 1, 'Incendicite Mineral Vein - Wetlands - Group 2 - Master', 0, 0, 0, 10);
|
|
INSERT INTO `pool_pool` (`pool_id`, `mother_pool`, `chance`, `description`, `flags`) VALUES
|
|
(6202, @PTEMPLATE+2, 0, 'Wetlands - Group 2 - Incendicite Mineral Vein', 0),
|
|
(6196, @PTEMPLATE+2, 0, 'Wetlands - Group 2 - Incendicite Mineral Vein', 0),
|
|
(6197, @PTEMPLATE+2, 0, 'Wetlands - Group 2 - Incendicite Mineral Vein', 0),
|
|
(6201, @PTEMPLATE+2, 0, 'Wetlands - Group 2 - Incendicite Mineral Vein', 0);
|
|
|
|
DELETE FROM `pool_pool` WHERE `pool_id` IN (6203, 6205, 1615, 6198);
|
|
UPDATE `pool_template` SET `description` = 'Incendicite Mineral Vein - Wetlands - Group 3' WHERE `entry` IN (6203, 6205, 1615, 6198);
|
|
UPDATE `pool_gameobject` SET `description` = 'Incendicite Mineral Vein - Wetlands - Group 3' WHERE `pool_entry` IN (6203, 6205, 1615, 6198);
|
|
INSERT INTO `pool_template` (`entry`, `max_limit`, `description`, `flags`, `instance`, `patch_min`, `patch_max`) VALUES
|
|
(@PTEMPLATE+3, 1, 'Incendicite Mineral Vein - Wetlands - Group 3 - Master', 0, 0, 0, 10);
|
|
INSERT INTO `pool_pool` (`pool_id`, `mother_pool`, `chance`, `description`, `flags`) VALUES
|
|
(6203, @PTEMPLATE+3, 0, 'Wetlands - Group 3 - Incendicite Mineral Vein', 0),
|
|
(6205, @PTEMPLATE+3, 0, 'Wetlands - Group 3 - Incendicite Mineral Vein', 0),
|
|
(1615, @PTEMPLATE+3, 0, 'Wetlands - Group 3 - Incendicite Mineral Vein', 0),
|
|
(6198, @PTEMPLATE+3, 0, 'Wetlands - Group 3 - Incendicite Mineral Vein', 0);
|
|
|
|
DELETE FROM `pool_pool` WHERE `pool_id` IN (6199, 6206, 6204, 6193);
|
|
UPDATE `pool_template` SET `description` = 'Incendicite Mineral Vein - Wetlands - Group 4' WHERE `entry` IN (6199, 6206, 6204, 6193);
|
|
UPDATE `pool_gameobject` SET `description` = 'Incendicite Mineral Vein - Wetlands - Group 4' WHERE `pool_entry` IN (6199, 6206, 6204, 6193);
|
|
INSERT INTO `pool_template` (`entry`, `max_limit`, `description`, `flags`, `instance`, `patch_min`, `patch_max`) VALUES
|
|
(@PTEMPLATE+4, 1, 'Incendicite Mineral Vein - Wetlands - Group 4 - Master', 0, 0, 0, 10);
|
|
INSERT INTO `pool_pool` (`pool_id`, `mother_pool`, `chance`, `description`, `flags`) VALUES
|
|
(6199, @PTEMPLATE+4, 0, 'Wetlands - Group 4 - Incendicite Mineral Vein', 0),
|
|
(6206, @PTEMPLATE+4, 0, 'Wetlands - Group 4 - Incendicite Mineral Vein', 0),
|
|
(6204, @PTEMPLATE+4, 0, 'Wetlands - Group 4 - Incendicite Mineral Vein', 0),
|
|
(6193, @PTEMPLATE+4, 0, 'Wetlands - Group 4 - Incendicite Mineral Vein', 0);
|
|
|
|
DELETE FROM `pool_template` WHERE `entry` = 3257;
|
|
|
|
-- End of migration.
|
|
END IF;
|
|
END??
|
|
DELIMITER ;
|
|
CALL add_migration();
|
|
DROP PROCEDURE IF EXISTS add_migration;
|