Skip to content

Commit

Permalink
Import pending SQL update file...
Browse files Browse the repository at this point in the history
Referenced commit(s): 2b490ea
  • Loading branch information
AzerothCoreBot committed Jul 24, 2019
1 parent 2b490ea commit d9d84c4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
29 changes: 29 additions & 0 deletions data/sql/updates/db_world/2019_07_24_01.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
-- DB update 2019_07_24_00 -> 2019_07_24_01
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_24_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_07_24_00 2019_07_24_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1560396171418694700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--

INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1560396171418694700');

UPDATE `gameobject_template_addon` SET `faction`=35 WHERE `entry`=193070; -- Nexus Raid Platform now has faction 35, instead of 0 and is friendly to players.
UPDATE `gameobject_template` SET `Data0`=6000000 WHERE `entry`=193070; -- Nexus Raid Platform has a lot more hp in order not to break in case any siege damage is taken, initial value was 100. (double safety)

--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;
4 changes: 0 additions & 4 deletions data/sql/updates/pending_db_world/rev_1560396171418694700.sql

This file was deleted.

0 comments on commit d9d84c4

Please sign in to comment.