87 lines
11 KiB
SQL
87 lines
11 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`='20210102161211');
|
|
IF v=0 THEN
|
|
INSERT INTO `migrations` VALUES ('20210102161211');
|
|
-- Add your query below.
|
|
|
|
|
|
-- Correct location of existing objects.
|
|
UPDATE `gameobject` SET `position_x`=908.785, `position_y`=1462.15, `position_z`=35.2878, `orientation`=3.85718, `rotation0`=0, `rotation1`=0, `rotation2`=-0.936671, `rotation3`=0.35021 WHERE `guid`=1827;
|
|
UPDATE `gameobject` SET `position_x`=378.769, `position_y`=1152.34, `position_z`=92.5748, `orientation`=4.45059, `rotation0`=0, `rotation1`=0, `rotation2`=-0.793353, `rotation3`=0.608762 WHERE `guid`=1840;
|
|
UPDATE `gameobject` SET `position_x`=-9614.35, `position_y`=-2156.73, `position_z`=73.633, `orientation`=3.73501, `rotation0`=0, `rotation1`=0, `rotation2`=-0.956305, `rotation3`=0.292372 WHERE `guid`=1820;
|
|
UPDATE `gameobject` SET `position_x`=1313.98, `position_y`=-4928.83, `position_z`=9.16377, `orientation`=1.91986, `rotation0`=0, `rotation1`=0, `rotation2`=0.819152, `rotation3`=0.573577 WHERE `guid`=1795;
|
|
UPDATE `gameobject` SET `position_x`=1138.76, `position_y`=-4902.47, `position_z`=17.5071, `orientation`=6.0912, `rotation0`=0, `rotation1`=0, `rotation2`=-0.0958452, `rotation3`=0.995396 WHERE `guid`=1996;
|
|
UPDATE `gameobject` SET `position_x`=-998.674, `position_y`=-1065.87, `position_z`=46.8172, `orientation`=4.57276, `rotation0`=0, `rotation1`=0, `rotation2`=-0.754709, `rotation3`=0.656059 WHERE `guid`=18596;
|
|
|
|
|
|
-- Missing spawns in Durotar.
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1873, 1619, 1, -233.734, -4837.06, 28.8369, 0.733038, 0, 0, 0.358368, 0.933581, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1873, 1021, 'Earthroot');
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1874, 1619, 1, 912.638, -4033.78, -11.5388, 3.35105, 0, 0, -0.994521, 0.104535, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1874, 1021, 'Earthroot');
|
|
|
|
|
|
-- Missing spawns in Elwynn Forest.
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1753, 1619, 0, -9242.07, -500.695, 72.2388, 2.58308, 0, 0, 0.961261, 0.27564, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1753, 1011, 'Earthroot');
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1803, 1619, 0, -9735.58, -1411.31, 57.8482, 3.07177, 0, 0, 0.999391, 0.0349061, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1803, 1011, 'Earthroot');
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1806, 1619, 0, -9804.1, -1442.02, 43.9482, 5.65487, 0, 0, -0.309016, 0.951057, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1806, 1011, 'Earthroot');
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1838, 1619, 0, -9819.25, -1392.68, 53.7645, 3.08918, 0, 0, 0.999657, 0.0262017, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1838, 1011, 'Earthroot');
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1842, 1619, 0, -9785.67, -1340.88, 52.0721, 5.48033, 0, 0, -0.390731, 0.920505, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1842, 1011, 'Earthroot');
|
|
|
|
|
|
-- Missing spawns in Loch Modan.
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1872, 1619, 0, -5521.8, -3031.14, 361.204, 0.942477, 0, 0, 0.45399, 0.891007, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1872, 1160, 'Earthroot');
|
|
|
|
|
|
-- Missing spawns in Redridge Mountains.
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1603, 1619, 0, -9655.55, -2019.22, 56.6992, 3.61284, 0, 0, -0.972369, 0.233448, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1603, 1124, 'Earthroot');
|
|
|
|
|
|
-- Missing spawns in Silverpine Forest.
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1597, 1619, 0, 357.362, 713.061, 45.0774, 0.785397, 0, 0, 0.382683, 0.92388, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1597, 1040, 'Earthroot');
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1653, 1619, 0, 889.81, 1172.69, 49.8807, 3.61284, 0, 0, -0.972369, 0.233448, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1653, 1040, 'Earthroot');
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1666, 1619, 0, 275.478, 1292.72, 79.5945, 4.71239, 0, 0, -0.707107, 0.707107, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1666, 1040, 'Earthroot');
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1670, 1619, 0, 827.243, 1324.17, 54.6776, 0.820303, 0, 0, 0.398748, 0.91706, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1670, 1040, 'Earthroot');
|
|
|
|
|
|
-- Missing spawns in Tirisfal Glades.
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1093, 1619, 0, 2057.79, 22.5872, 41.5133, 1.44862, 0, 0, 0.66262, 0.748956, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1093, 1005, 'Earthroot');
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1623, 1619, 0, 2785.7, 501.149, 26.605, 5.18363, 0, 0, -0.522498, 0.852641, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1623, 1005, 'Earthroot');
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1628, 1619, 0, 2992.24, 441.681, 24.7336, 1.11701, 0, 0, 0.529919, 0.848048, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1628, 1005, 'Earthroot');
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1640, 1619, 0, 1963.52, -625.277, 61.4846, 0.523598, 0, 0, 0.258819, 0.965926, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1640, 1005, 'Earthroot');
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1669, 1619, 0, 1892.15, -682.06, 50.8038, 2.75761, 0, 0, 0.981627, 0.190812, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1669, 1005, 'Earthroot');
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1766, 1619, 0, 1761.84, -737.912, 59.9442, 0.95993, 0, 0, 0.461748, 0.887011, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1766, 1005, 'Earthroot');
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1788, 1619, 0, 2422.79, -372.752, 68.532, 1.71042, 0, 0, 0.754709, 0.656059, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1788, 1005, 'Earthroot');
|
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`) VALUES (1860, 1619, 0, 1854.79, -199.715, 49.3374, 1.67551, 0, 0, 0.743144, 0.669132, 900, 900, 255, 1);
|
|
INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`) VALUES (1860, 1005, 'Earthroot');
|
|
|
|
|
|
-- End of migration.
|
|
END IF;
|
|
END??
|
|
delimiter ;
|
|
CALL add_migration();
|
|
DROP PROCEDURE IF EXISTS add_migration;
|