chore(DB): import pending SQL update file
Referenced commit(s): 727590dcf8
This commit is contained in:
+25
@@ -1,3 +1,19 @@
|
|||||||
|
-- DB update 2021_03_04_00 -> 2021_03_04_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 = '2021_03_04_00';
|
||||||
|
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||||
|
START TRANSACTION;
|
||||||
|
ALTER TABLE version_db_world CHANGE COLUMN 2021_03_04_00 2021_03_04_01 bit;
|
||||||
|
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1613666945769317000'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||||
|
--
|
||||||
|
-- START UPDATING QUERIES
|
||||||
|
--
|
||||||
|
|
||||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1613666945769317000');
|
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1613666945769317000');
|
||||||
-- Kristen Dipswitch
|
-- Kristen Dipswitch
|
||||||
UPDATE `creature` SET `spawntimesecs` = 1800 WHERE (`guid` = 65624);
|
UPDATE `creature` SET `spawntimesecs` = 1800 WHERE (`guid` = 65624);
|
||||||
@@ -163,3 +179,12 @@ INSERT INTO `npc_text` (`ID`, `text0_0`, `text0_1`, `BroadcastTextID0`, `lang0`,
|
|||||||
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=14 AND `SourceGroup`=7629;
|
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=14 AND `SourceGroup`=7629;
|
||||||
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
|
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
|
||||||
(14,7629,9293,0,0,8,0,9897,0,0,0,0,0,"","Show gossip text 9293 if quest 'I'm Saved' is rewarded");
|
(14,7629,9293,0,0,8,0,9897,0,0,0,0,0,"","Show gossip text 9293 if quest 'I'm Saved' is rewarded");
|
||||||
|
|
||||||
|
--
|
||||||
|
-- END UPDATING QUERIES
|
||||||
|
--
|
||||||
|
COMMIT;
|
||||||
|
END //
|
||||||
|
DELIMITER ;
|
||||||
|
CALL updateDb();
|
||||||
|
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||||
Reference in New Issue
Block a user