Import pending SQL update file...

Referenced commit(s): 4a96f4988d
This commit is contained in:
AzerothCoreBot
2019-07-15 06:08:55 +00:00
parent 4a96f4988d
commit 7b105b75dd
2 changed files with 35 additions and 10 deletions

View File

@@ -0,0 +1,35 @@
-- DB update 2019_07_14_00 -> 2019_07_15_00
DROP PROCEDURE IF EXISTS `updateDb`;
DELIMITER //
CREATE PROCEDURE updateDb ()
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
SELECT COUNT(*) INTO @COLEXISTS
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_07_14_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_07_14_00 2019_07_15_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1562149079104513383'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1562149079104513383');
-- The Ebon Blade Prisoners should not be attackable
UPDATE `creature_template` SET `unit_flags` = `unit_flags` | 2 WHERE `entry` IN (30186,30194,30196,30195);
-- The Jotunheim Cage should reset after 5 minutes instead of 10 in order to sync with the Ebon Blade Prisoner respawn
UPDATE `gameobject_template` SET `Data3` = 300000 WHERE `entry` = 192135;
-- Jotunheim Warrior, Njorndar Spear-Sister and Mjordin Water Magus have to use "SMART_TARGET_SELF" instead of "SMART_TARGET_ACTION_INVOKER" for their talk action
UPDATE `smart_scripts` SET `target_type` = 1 WHERE `entryorguid` IN (30243,30632,29880) AND `source_type` = 0 AND `action_type` = 1 AND `target_type` = 7;
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

View File

@@ -1,10 +0,0 @@
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1562149079104513383');
-- The Ebon Blade Prisoners should not be attackable
UPDATE `creature_template` SET `unit_flags` = `unit_flags` | 2 WHERE `entry` IN (30186,30194,30196,30195);
-- The Jotunheim Cage should reset after 5 minutes instead of 10 in order to sync with the Ebon Blade Prisoner respawn
UPDATE `gameobject_template` SET `Data3` = 300000 WHERE `entry` = 192135;
-- Jotunheim Warrior, Njorndar Spear-Sister and Mjordin Water Magus have to use "SMART_TARGET_SELF" instead of "SMART_TARGET_ACTION_INVOKER" for their talk action
UPDATE `smart_scripts` SET `target_type` = 1 WHERE `entryorguid` IN (30243,30632,29880) AND `source_type` = 0 AND `action_type` = 1 AND `target_type` = 7;