mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
chore(DB): import pending SQL update file
Referenced commit(s): 26f2abaaa9
This commit is contained in:
@@ -1,3 +1,19 @@
|
|||||||
|
-- DB update 2021_03_23_00 -> 2021_05_13_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_auth' AND COLUMN_NAME = '2021_03_23_00';
|
||||||
|
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||||
|
START TRANSACTION;
|
||||||
|
ALTER TABLE version_db_auth CHANGE COLUMN 2021_03_23_00 2021_05_13_00 bit;
|
||||||
|
SELECT sql_rev INTO OK FROM version_db_auth WHERE sql_rev = '1620079951672711500'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||||
|
--
|
||||||
|
-- START UPDATING QUERIES
|
||||||
|
--
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
||||||
START TRANSACTION; -- we're messing with the accounts table here, let's play it safe
|
START TRANSACTION; -- we're messing with the accounts table here, let's play it safe
|
||||||
@@ -295,3 +311,12 @@ UPDATE `account` a LEFT JOIN `_temp_totp_conversion` c ON a.`token_key`=c.`origi
|
|||||||
ALTER TABLE `account` DROP COLUMN `token_key`;
|
ALTER TABLE `account` DROP COLUMN `token_key`;
|
||||||
|
|
||||||
COMMIT; -- safety gloves off
|
COMMIT; -- safety gloves off
|
||||||
|
|
||||||
|
--
|
||||||
|
-- END UPDATING QUERIES
|
||||||
|
--
|
||||||
|
COMMIT;
|
||||||
|
END //
|
||||||
|
DELIMITER ;
|
||||||
|
CALL updateDb();
|
||||||
|
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||||
@@ -1,3 +1,19 @@
|
|||||||
|
-- DB update 2021_05_12_00 -> 2021_05_13_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 = '2021_05_12_00';
|
||||||
|
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||||
|
START TRANSACTION;
|
||||||
|
ALTER TABLE version_db_world CHANGE COLUMN 2021_05_12_00 2021_05_13_00 bit;
|
||||||
|
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1620079973240388200'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||||
|
--
|
||||||
|
-- START UPDATING QUERIES
|
||||||
|
--
|
||||||
|
|
||||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1620079973240388200');
|
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1620079973240388200');
|
||||||
|
|
||||||
--
|
--
|
||||||
@@ -30,3 +46,12 @@ Once you have set up your device, confirm by running .account 2fa setup <token>
|
|||||||
(188, "The provided two-factor authentication secret is too long."),
|
(188, "The provided two-factor authentication secret is too long."),
|
||||||
(189, "The provided two-factor authentication secret is not valid."),
|
(189, "The provided two-factor authentication secret is not valid."),
|
||||||
(190, "Successfully enabled two-factor authentication for '%s' with the specified secret.");
|
(190, "Successfully enabled two-factor authentication for '%s' with the specified secret.");
|
||||||
|
|
||||||
|
--
|
||||||
|
-- END UPDATING QUERIES
|
||||||
|
--
|
||||||
|
COMMIT;
|
||||||
|
END //
|
||||||
|
DELIMITER ;
|
||||||
|
CALL updateDb();
|
||||||
|
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||||
Reference in New Issue
Block a user