Skip to content

Commit

Permalink
Import pending SQL update file...
Browse files Browse the repository at this point in the history
Referenced commit(s): 0614bdf
  • Loading branch information
AzerothCoreBot committed Apr 11, 2019
1 parent 0614bdf commit 135b447
Showing 1 changed file with 25 additions and 0 deletions.
@@ -1,3 +1,19 @@
-- DB update 2019_04_09_00 -> 2019_04_11_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_04_09_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2019_04_09_00 2019_04_11_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1554847609374764694'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--

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

-- Shadowmoon Darkweaver
Expand Down Expand Up @@ -226,3 +242,12 @@ INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,
VALUES
(13,7,38312,0,0,31,0,4,0,0,0,0,'','Fel Fireball - target Player');


--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;

0 comments on commit 135b447

Please sign in to comment.