mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-19 00:20:39 +01:00
Core/Movement: Added Velocity field to waypoint_path table (#29837)
This commit is contained in:
17
sql/updates/world/master/2024_04_02_00_world.sql
Normal file
17
sql/updates/world/master/2024_04_02_00_world.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
DELIMITER ;;
|
||||
CREATE PROCEDURE waypoint_path_velocity_2024_04_02_00() BEGIN
|
||||
IF NOT EXISTS (SELECT * FROM `information_schema`.`columns` WHERE `table_schema`=SCHEMA() AND `table_name`='waypoint_path' AND `column_name`='Velocity') THEN
|
||||
|
||||
ALTER TABLE `waypoint_path`
|
||||
ADD COLUMN `Velocity` float NULL DEFAULT NULL AFTER `Flags`;
|
||||
|
||||
END IF;
|
||||
END;;
|
||||
|
||||
DELIMITER ;
|
||||
CALL waypoint_path_velocity_2024_04_02_00();
|
||||
|
||||
DROP PROCEDURE IF EXISTS waypoint_path_velocity_2024_04_02_00;
|
||||
|
||||
UPDATE `waypoint_path` SET `Velocity`=4.0 WHERE `PathId`=9301100;
|
||||
UPDATE `waypoint_path` SET `Velocity`=35.0 WHERE `PathId` IN(11432300, 11432301, 11432302, 11432303, 11432304);
|
||||
Reference in New Issue
Block a user