mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
refactor(sql): Split big update file into smaller ones
This commit is contained in:
committed by
Francesco Borzì
parent
1952b2fbfb
commit
d82d6ba20d
File diff suppressed because it is too large
Load Diff
282
data/sql/updates/db_world/2019_01_12_02.sql
Normal file
282
data/sql/updates/db_world/2019_01_12_02.sql
Normal file
@@ -0,0 +1,282 @@
|
||||
-- DB update 2019_01_12_01 -> 2019_01_12_02
|
||||
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_01_12_01';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2019_01_12_01 2019_01_12_02 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1546089286503990302'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO version_db_world (`sql_rev`) VALUES ('1546089286503990302');
|
||||
|
||||
-- locales_achievement_reward
|
||||
INSERT INTO `achievement_reward_locale` (`ID`, `Locale`, `Subject`, `Text`)
|
||||
(SELECT `entry`, "koKR", `subject_loc1`, `text_loc1` FROM `locales_achievement_reward` WHERE LENGTH(subject_loc1) > 0 OR LENGTH(text_loc1) > 0);
|
||||
|
||||
INSERT INTO `achievement_reward_locale` (`ID`, `locale`, `Subject`, `Text`)
|
||||
(SELECT `entry`, "frFR", `subject_loc2`, `text_loc2` FROM `locales_achievement_reward` WHERE LENGTH(subject_loc2) > 0 OR LENGTH(text_loc2) > 0);
|
||||
|
||||
INSERT INTO `achievement_reward_locale` (`ID`, `locale`, `Subject`, `Text`)
|
||||
(SELECT `entry`, "deDE", `subject_loc3`, `text_loc3` FROM `locales_achievement_reward` WHERE LENGTH(subject_loc3) > 0 OR LENGTH(text_loc3) > 0);
|
||||
|
||||
INSERT INTO `achievement_reward_locale` (`ID`, `locale`, `Subject`, `Text`)
|
||||
(SELECT `entry`, "zhCN", `subject_loc4`, `text_loc4` FROM `locales_achievement_reward` WHERE LENGTH(subject_loc4) > 0 OR LENGTH(text_loc4) > 0);
|
||||
|
||||
INSERT INTO `achievement_reward_locale` (`ID`, `locale`, `Subject`, `Text`)
|
||||
(SELECT `entry`, "zhTW", `subject_loc5`, `text_loc5` FROM `locales_achievement_reward` WHERE LENGTH(subject_loc5) > 0 OR LENGTH(text_loc5) > 0);
|
||||
|
||||
INSERT INTO `achievement_reward_locale` (`ID`, `locale`, `Subject`, `Text`)
|
||||
(SELECT `entry`, "esES", `subject_loc6`, `text_loc6` FROM `locales_achievement_reward` WHERE LENGTH(subject_loc6) > 0 OR LENGTH(text_loc6) > 0);
|
||||
|
||||
INSERT INTO `achievement_reward_locale` (`ID`, `locale`, `Subject`, `Text`)
|
||||
(SELECT `entry`, "esMX", `subject_loc7`, `text_loc7` FROM `locales_achievement_reward` WHERE LENGTH(subject_loc7) > 0 OR LENGTH(text_loc7) > 0);
|
||||
|
||||
INSERT INTO `achievement_reward_locale` (`ID`, `locale`, `Subject`, `Text`)
|
||||
(SELECT `entry`, "ruRU", `subject_loc8`, `text_loc8` FROM `locales_achievement_reward` WHERE LENGTH(subject_loc8) > 0 OR LENGTH(text_loc8) > 0);
|
||||
|
||||
|
||||
-- locales_broadcast_text
|
||||
INSERT INTO `broadcast_text_locale` (`ID`, `locale`, `MaleText`, `FemaleText`, `VerifiedBuild`)
|
||||
(SELECT `Id`, "koKR", `MaleText_loc1`, `FemaleText_loc1`, `VerifiedBuild` FROM `locales_broadcast_text` WHERE LENGTH(MaleText_loc1) > 0 OR LENGTH(FemaleText_loc1) > 0);
|
||||
|
||||
INSERT INTO `broadcast_text_locale` (`ID`, `locale`, `MaleText`, `FemaleText`, `VerifiedBuild`)
|
||||
(SELECT `Id`, "frFR", `MaleText_loc2`, `FemaleText_loc2`, `VerifiedBuild` FROM `locales_broadcast_text` WHERE LENGTH(MaleText_loc2) > 0 OR LENGTH(FemaleText_loc2) > 0);
|
||||
|
||||
INSERT INTO `broadcast_text_locale` (`ID`, `locale`, `MaleText`, `FemaleText`, `VerifiedBuild`)
|
||||
(SELECT `Id`, "deDE", `MaleText_loc3`, `FemaleText_loc3`, `VerifiedBuild` FROM `locales_broadcast_text` WHERE LENGTH(MaleText_loc3) > 0 OR LENGTH(FemaleText_loc3) > 0);
|
||||
|
||||
INSERT INTO `broadcast_text_locale` (`ID`, `locale`, `MaleText`, `FemaleText`, `VerifiedBuild`)
|
||||
(SELECT `Id`, "zhCN", `MaleText_loc4`, `FemaleText_loc4`, `VerifiedBuild` FROM `locales_broadcast_text` WHERE LENGTH(MaleText_loc4) > 0 OR LENGTH(FemaleText_loc4) > 0);
|
||||
|
||||
INSERT INTO `broadcast_text_locale` (`ID`, `locale`, `MaleText`, `FemaleText`, `VerifiedBuild`)
|
||||
(SELECT `Id`, "zhTW", `MaleText_loc5`, `FemaleText_loc5`, `VerifiedBuild` FROM `locales_broadcast_text` WHERE LENGTH(MaleText_loc5) > 0 OR LENGTH(FemaleText_loc5) > 0);
|
||||
|
||||
INSERT INTO `broadcast_text_locale` (`ID`, `locale`, `MaleText`, `FemaleText`, `VerifiedBuild`)
|
||||
(SELECT `Id`, "esES", `MaleText_loc6`, `FemaleText_loc6`, `VerifiedBuild` FROM `locales_broadcast_text` WHERE LENGTH(MaleText_loc6) > 0 OR LENGTH(FemaleText_loc6) > 0);
|
||||
|
||||
INSERT INTO `broadcast_text_locale` (`ID`, `locale`, `MaleText`, `FemaleText`, `VerifiedBuild`)
|
||||
(SELECT `Id`, "esMX", `MaleText_loc7`, `FemaleText_loc7`, `VerifiedBuild` FROM `locales_broadcast_text` WHERE LENGTH(MaleText_loc7) > 0 OR LENGTH(FemaleText_loc7) > 0);
|
||||
|
||||
INSERT INTO `broadcast_text_locale` (`ID`, `locale`, `MaleText`, `FemaleText`, `VerifiedBuild`)
|
||||
(SELECT `Id`, "ruRU", `MaleText_loc8`, `FemaleText_loc8`, `VerifiedBuild` FROM `locales_broadcast_text` WHERE LENGTH(MaleText_loc8) > 0 OR LENGTH(FemaleText_loc8) > 0);
|
||||
|
||||
|
||||
-- Creature_text_locale
|
||||
INSERT INTO `creature_text_locale` (`CreatureID`, `GroupID`, `ID`, `Locale`, `Text`)
|
||||
(SELECT `entry`, `groupid`, `id`, "koKR", `text_loc1` FROM `locales_creature_text` WHERE LENGTH(text_loc1) > 0);
|
||||
|
||||
INSERT INTO `creature_text_locale` (`CreatureID`, `GroupID`, `ID`, `Locale`, `Text`)
|
||||
(SELECT `entry`, `groupid`, `id`, "frFR", `text_loc2` FROM `locales_creature_text` WHERE LENGTH(text_loc2) > 0);
|
||||
|
||||
INSERT INTO `creature_text_locale` (`CreatureID`, `GroupID`, `ID`, `Locale`, `Text`)
|
||||
(SELECT `entry`, `groupid`, `id`, "deDE", `text_loc3` FROM `locales_creature_text` WHERE LENGTH(text_loc3) > 0);
|
||||
|
||||
INSERT INTO `creature_text_locale` (`CreatureID`, `GroupID`, `ID`, `Locale`, `Text`)
|
||||
(SELECT `entry`, `groupid`, `id`, "zhCN", `text_loc4` FROM `locales_creature_text` WHERE LENGTH(text_loc4) > 0);
|
||||
|
||||
INSERT INTO `creature_text_locale` (`CreatureID`, `GroupID`, `ID`, `Locale`, `Text`)
|
||||
(SELECT `entry`, `groupid`, `id`, "zhTW", `text_loc5` FROM `locales_creature_text` WHERE LENGTH(text_loc5) > 0);
|
||||
|
||||
INSERT INTO `creature_text_locale` (`CreatureID`, `GroupID`, `ID`, `Locale`, `Text`)
|
||||
(SELECT `entry`, `groupid`, `id`, "esES", `text_loc6` FROM `locales_creature_text` WHERE LENGTH(text_loc6) > 0);
|
||||
|
||||
INSERT INTO `creature_text_locale` (`CreatureID`, `GroupID`, `ID`, `Locale`, `Text`)
|
||||
(SELECT `entry`, `groupid`, `id`, "esMX", `text_loc7` FROM `locales_creature_text` WHERE LENGTH(text_loc7) > 0);
|
||||
|
||||
INSERT INTO `creature_text_locale` (`CreatureID`, `GroupID`, `ID`, `Locale`, `Text`)
|
||||
(SELECT `entry`, `groupid`, `id`, "ruRU", `text_loc8` FROM `locales_creature_text` WHERE LENGTH(text_loc8) > 0);
|
||||
|
||||
|
||||
-- Gossip_menu_option_locale
|
||||
INSERT INTO `gossip_menu_option_locale` (`MenuID`, `OptionID`, `Locale`, `OptionText`, `BoxText`)
|
||||
(SELECT `menu_id`, `id`, "koKR", `option_text_loc1`, `box_text_loc1` FROM `locales_gossip_menu_option` WHERE LENGTH(option_text_loc1) > 0 || LENGTH(box_text_loc1) > 0);
|
||||
|
||||
INSERT INTO `gossip_menu_option_locale` (`MenuID`, `OptionID`, `Locale`, `OptionText`, `BoxText`)
|
||||
(SELECT `menu_id`, `id`, "frFR", `option_text_loc2`, `box_text_loc2` FROM `locales_gossip_menu_option` WHERE LENGTH(option_text_loc2) > 0 || LENGTH(box_text_loc2) > 0);
|
||||
|
||||
INSERT INTO `gossip_menu_option_locale` (`MenuID`, `OptionID`, `Locale`, `OptionText`, `BoxText`)
|
||||
(SELECT `menu_id`, `id`, "deDE", `option_text_loc3`, `box_text_loc3` FROM `locales_gossip_menu_option` WHERE LENGTH(option_text_loc3) > 0 || LENGTH(box_text_loc3) > 0);
|
||||
|
||||
INSERT INTO `gossip_menu_option_locale` (`MenuID`, `OptionID`, `Locale`, `OptionText`, `BoxText`)
|
||||
(SELECT `menu_id`, `id`, "zhCN", `option_text_loc4`, `box_text_loc4` FROM `locales_gossip_menu_option` WHERE LENGTH(option_text_loc4) > 0 || LENGTH(box_text_loc4) > 0);
|
||||
|
||||
INSERT INTO `gossip_menu_option_locale` (`MenuID`, `OptionID`, `Locale`, `OptionText`, `BoxText`)
|
||||
(SELECT `menu_id`, `id`, "zhTW", `option_text_loc5`, `box_text_loc5` FROM `locales_gossip_menu_option` WHERE LENGTH(option_text_loc5) > 0 || LENGTH(box_text_loc5) > 0);
|
||||
|
||||
INSERT INTO `gossip_menu_option_locale` (`MenuID`, `OptionID`, `Locale`, `OptionText`, `BoxText`)
|
||||
(SELECT `menu_id`, `id`, "esES", `option_text_loc6`, `box_text_loc6` FROM `locales_gossip_menu_option` WHERE LENGTH(option_text_loc6) > 0 || LENGTH(box_text_loc6) > 0);
|
||||
|
||||
INSERT INTO `gossip_menu_option_locale` (`MenuID`, `OptionID`, `Locale`, `OptionText`, `BoxText`)
|
||||
(SELECT `menu_id`, `id`, "esMX", `option_text_loc7`, `box_text_loc7` FROM `locales_gossip_menu_option` WHERE LENGTH(option_text_loc7) > 0 || LENGTH(box_text_loc7) > 0);
|
||||
|
||||
INSERT INTO `gossip_menu_option_locale` (`MenuID`, `OptionID`, `Locale`, `OptionText`, `BoxText`)
|
||||
(SELECT `menu_id`, `id`, "ruRU", `option_text_loc8`, `box_text_loc8` FROM `locales_gossip_menu_option` WHERE LENGTH(option_text_loc8) > 0 || LENGTH(box_text_loc8) > 0);
|
||||
|
||||
|
||||
-- Item_template_locale
|
||||
INSERT INTO `item_template_locale` (`ID`, `locale`, `Name`, `Description`, `VerifiedBuild`)
|
||||
(SELECT `entry`, "koKR", `name_loc1`, `description_loc1`, `VerifiedBuild` FROM `locales_item` WHERE LENGTH(name_loc1) > 0 OR LENGTH(description_loc1) > 0);
|
||||
|
||||
INSERT INTO `item_template_locale` (`ID`, `locale`, `Name`, `Description`, `VerifiedBuild`)
|
||||
(SELECT `entry`, "frFR", `name_loc2`, `description_loc2`, `VerifiedBuild` FROM `locales_item` WHERE LENGTH(name_loc2) > 0 OR LENGTH(description_loc2) > 0);
|
||||
|
||||
INSERT INTO `item_template_locale` (`ID`, `locale`, `Name`, `Description`, `VerifiedBuild`)
|
||||
(SELECT `entry`, "deDE", `name_loc3`, `description_loc3`, `VerifiedBuild` FROM `locales_item` WHERE LENGTH(name_loc3) > 0 OR LENGTH(description_loc3) > 0);
|
||||
|
||||
INSERT INTO `item_template_locale` (`ID`, `locale`, `Name`, `Description`, `VerifiedBuild`)
|
||||
(SELECT `entry`, "zhCN", `name_loc4`, `description_loc4`, `VerifiedBuild` FROM `locales_item` WHERE LENGTH(name_loc4) > 0 OR LENGTH(description_loc4) > 0);
|
||||
|
||||
INSERT INTO `item_template_locale` (`ID`, `locale`, `Name`, `Description`, `VerifiedBuild`)
|
||||
(SELECT `entry`, "zhTW", `name_loc5`, `description_loc5`, `VerifiedBuild` FROM `locales_item` WHERE LENGTH(name_loc5) > 0 OR LENGTH(description_loc5) > 0);
|
||||
|
||||
INSERT INTO `item_template_locale` (`ID`, `locale`, `Name`, `Description`, `VerifiedBuild`)
|
||||
(SELECT `entry`, "esES", `name_loc6`, `description_loc6`, `VerifiedBuild` FROM `locales_item` WHERE LENGTH(name_loc6) > 0 OR LENGTH(description_loc6) > 0);
|
||||
|
||||
INSERT INTO `item_template_locale` (`ID`, `locale`, `Name`, `Description`, `VerifiedBuild`)
|
||||
(SELECT `entry`, "esMX", `name_loc7`, `description_loc7`, `VerifiedBuild` FROM `locales_item` WHERE LENGTH(name_loc7) > 0 OR LENGTH(description_loc7) > 0);
|
||||
|
||||
INSERT INTO `item_template_locale` (`ID`, `locale`, `Name`, `Description`, `VerifiedBuild`)
|
||||
(SELECT `entry`, "ruRU", `name_loc8`, `description_loc8`, `VerifiedBuild` FROM `locales_item` WHERE LENGTH(name_loc8) > 0 OR LENGTH(description_loc8) > 0);
|
||||
|
||||
|
||||
-- Npc_text_locale
|
||||
INSERT INTO `npc_text_locale` (`ID`, `Locale`, `Text0_0`, `Text0_1`, `Text1_0`, `Text1_1`, `Text2_0`, `Text2_1`, `Text3_0`, `Text3_1`, `Text4_0`, `Text4_1`, `Text5_0`, `Text5_1`, `Text6_0`, `Text6_1`, `Text7_0`, `Text7_1`)
|
||||
(SELECT `ID`, "koKR", `Text0_0_loc1`, `Text0_1_loc1`, `Text1_0_loc1`, `Text1_1_loc1`, `Text2_0_loc1`, `Text2_1_loc1`, `Text3_0_loc1`, `Text3_1_loc1`, `Text4_0_loc1`, `Text4_1_loc1`, `Text5_0_loc1`, `Text5_1_loc1`, `Text6_0_loc1`, `Text6_1_loc1`, `Text7_0_loc1`, `Text7_1_loc1`
|
||||
FROM `locales_npc_text`
|
||||
WHERE LENGTH(Text0_0_loc1) > 0 && LENGTH(Text0_1_loc1) > 0 && LENGTH(Text1_0_loc1) > 0 && LENGTH(Text1_1_loc1) > 0 && LENGTH(Text2_0_loc1) > 0 && LENGTH(Text2_1_loc1) > 0 && LENGTH(Text3_0_loc1) > 0 && LENGTH(Text3_1_loc1) > 0 && LENGTH(Text4_0_loc1) > 0 && LENGTH(Text4_1_loc1) > 0 && LENGTH(Text5_0_loc1) > 0 && LENGTH(Text5_1_loc1) > 0 && LENGTH(Text6_0_loc1) > 0 && LENGTH(Text6_1_loc1) > 0 && LENGTH(Text7_0_loc1) > 0 && LENGTH(Text7_1_loc1) > 0);
|
||||
|
||||
INSERT INTO `npc_text_locale` (`ID`, `Locale`, `Text0_0`, `Text0_1`, `Text1_0`, `Text1_1`, `Text2_0`, `Text2_1`, `Text3_0`, `Text3_1`, `Text4_0`, `Text4_1`, `Text5_0`, `Text5_1`, `Text6_0`, `Text6_1`, `Text7_0`, `Text7_1`)
|
||||
(SELECT `ID`, "frFR", `Text0_0_loc2`, `Text0_1_loc2`, `Text1_0_loc2`, `Text1_1_loc2`, `Text2_0_loc2`, `Text2_1_loc2`, `Text3_0_loc2`, `Text3_1_loc2`, `Text4_0_loc2`, `Text4_1_loc2`, `Text5_0_loc2`, `Text5_1_loc2`, `Text6_0_loc2`, `Text6_1_loc2`, `Text7_0_loc2`, `Text7_1_loc2`
|
||||
FROM `locales_npc_text`
|
||||
WHERE LENGTH(Text0_0_loc2) > 0 && LENGTH(Text0_1_loc2) > 0 && LENGTH(Text1_0_loc2) > 0 && LENGTH(Text1_1_loc2) > 0 && LENGTH(Text2_0_loc2) > 0 && LENGTH(Text2_1_loc2) > 0 && LENGTH(Text3_0_loc2) > 0 && LENGTH(Text3_1_loc2) > 0 && LENGTH(Text4_0_loc2) > 0 && LENGTH(Text4_1_loc2) > 0 && LENGTH(Text5_0_loc2) > 0 && LENGTH(Text5_1_loc2) > 0 && LENGTH(Text6_0_loc2) > 0 && LENGTH(Text6_1_loc2) > 0 && LENGTH(Text7_0_loc2) > 0 && LENGTH(Text7_1_loc2) > 0);
|
||||
|
||||
INSERT INTO `npc_text_locale` (`ID`, `Locale`, `Text0_0`, `Text0_1`, `Text1_0`, `Text1_1`, `Text2_0`, `Text2_1`, `Text3_0`, `Text3_1`, `Text4_0`, `Text4_1`, `Text5_0`, `Text5_1`, `Text6_0`, `Text6_1`, `Text7_0`, `Text7_1`)
|
||||
(SELECT `ID`, "deDE", `Text0_0_loc3`, `Text0_1_loc3`, `Text1_0_loc3`, `Text1_1_loc3`, `Text2_0_loc3`, `Text2_1_loc3`, `Text3_0_loc3`, `Text3_1_loc3`, `Text4_0_loc3`, `Text4_1_loc3`, `Text5_0_loc3`, `Text5_1_loc3`, `Text6_0_loc3`, `Text6_1_loc3`, `Text7_0_loc3`, `Text7_1_loc3`
|
||||
FROM `locales_npc_text`
|
||||
WHERE LENGTH(Text0_0_loc3) > 0 && LENGTH(Text0_1_loc3) > 0 && LENGTH(Text1_0_loc3) > 0 && LENGTH(Text1_1_loc3) > 0 && LENGTH(Text2_0_loc3) > 0 && LENGTH(Text2_1_loc3) > 0 && LENGTH(Text3_0_loc3) > 0 && LENGTH(Text3_1_loc3) > 0 && LENGTH(Text4_0_loc3) > 0 && LENGTH(Text4_1_loc3) > 0 && LENGTH(Text5_0_loc3) > 0 && LENGTH(Text5_1_loc3) > 0 && LENGTH(Text6_0_loc3) > 0 && LENGTH(Text6_1_loc3) > 0 && LENGTH(Text7_0_loc3) > 0 && LENGTH(Text7_1_loc3) > 0);
|
||||
|
||||
INSERT INTO `npc_text_locale` (`ID`, `Locale`, `Text0_0`, `Text0_1`, `Text1_0`, `Text1_1`, `Text2_0`, `Text2_1`, `Text3_0`, `Text3_1`, `Text4_0`, `Text4_1`, `Text5_0`, `Text5_1`, `Text6_0`, `Text6_1`, `Text7_0`, `Text7_1`)
|
||||
(SELECT `ID`, "zhCN", `Text0_0_loc4`, `Text0_1_loc4`, `Text1_0_loc4`, `Text1_1_loc4`, `Text2_0_loc4`, `Text2_1_loc4`, `Text3_0_loc4`, `Text3_1_loc4`, `Text4_0_loc4`, `Text4_1_loc4`, `Text5_0_loc4`, `Text5_1_loc4`, `Text6_0_loc4`, `Text6_1_loc4`, `Text7_0_loc4`, `Text7_1_loc4`
|
||||
FROM `locales_npc_text`
|
||||
WHERE LENGTH(Text0_0_loc4) > 0 && LENGTH(Text0_1_loc4) > 0 && LENGTH(Text1_0_loc4) > 0 && LENGTH(Text1_1_loc4) > 0 && LENGTH(Text2_0_loc4) > 0 && LENGTH(Text2_1_loc4) > 0 && LENGTH(Text3_0_loc4) > 0 && LENGTH(Text3_1_loc4) > 0 && LENGTH(Text4_0_loc4) > 0 && LENGTH(Text4_1_loc4) > 0 && LENGTH(Text5_0_loc4) > 0 && LENGTH(Text5_1_loc4) > 0 && LENGTH(Text6_0_loc4) > 0 && LENGTH(Text6_1_loc4) > 0 && LENGTH(Text7_0_loc4) > 0 && LENGTH(Text7_1_loc4) > 0);
|
||||
|
||||
INSERT INTO `npc_text_locale` (`ID`, `Locale`, `Text0_0`, `Text0_1`, `Text1_0`, `Text1_1`, `Text2_0`, `Text2_1`, `Text3_0`, `Text3_1`, `Text4_0`, `Text4_1`, `Text5_0`, `Text5_1`, `Text6_0`, `Text6_1`, `Text7_0`, `Text7_1`)
|
||||
(SELECT `ID`, "zhTW", `Text0_0_loc5`, `Text0_1_loc5`, `Text1_0_loc5`, `Text1_1_loc5`, `Text2_0_loc5`, `Text2_1_loc5`, `Text3_0_loc5`, `Text3_1_loc5`, `Text4_0_loc5`, `Text4_1_loc5`, `Text5_0_loc5`, `Text5_1_loc5`, `Text6_0_loc5`, `Text6_1_loc5`, `Text7_0_loc5`, `Text7_1_loc5`
|
||||
FROM `locales_npc_text`
|
||||
WHERE LENGTH(Text0_0_loc5) > 0 && LENGTH(Text0_1_loc5) > 0 && LENGTH(Text1_0_loc5) > 0 && LENGTH(Text1_1_loc5) > 0 && LENGTH(Text2_0_loc5) > 0 && LENGTH(Text2_1_loc5) > 0 && LENGTH(Text3_0_loc5) > 0 && LENGTH(Text3_1_loc5) > 0 && LENGTH(Text4_0_loc5) > 0 && LENGTH(Text4_1_loc5) > 0 && LENGTH(Text5_0_loc5) > 0 && LENGTH(Text5_1_loc5) > 0 && LENGTH(Text6_0_loc5) > 0 && LENGTH(Text6_1_loc5) > 0 && LENGTH(Text7_0_loc5) > 0 && LENGTH(Text7_1_loc5) > 0);
|
||||
|
||||
INSERT INTO `npc_text_locale` (`ID`, `Locale`, `Text0_0`, `Text0_1`, `Text1_0`, `Text1_1`, `Text2_0`, `Text2_1`, `Text3_0`, `Text3_1`, `Text4_0`, `Text4_1`, `Text5_0`, `Text5_1`, `Text6_0`, `Text6_1`, `Text7_0`, `Text7_1`)
|
||||
(SELECT `ID`, "esES", `Text0_0_loc6`, `Text0_1_loc6`, `Text1_0_loc6`, `Text1_1_loc6`, `Text2_0_loc6`, `Text2_1_loc6`, `Text3_0_loc6`, `Text3_1_loc6`, `Text4_0_loc6`, `Text4_1_loc6`, `Text5_0_loc6`, `Text5_1_loc6`, `Text6_0_loc6`, `Text6_1_loc6`, `Text7_0_loc6`, `Text7_1_loc6`
|
||||
FROM `locales_npc_text`
|
||||
WHERE LENGTH(Text0_0_loc6) > 0 && LENGTH(Text0_1_loc6) > 0 && LENGTH(Text1_0_loc6) > 0 && LENGTH(Text1_1_loc6) > 0 && LENGTH(Text2_0_loc6) > 0 && LENGTH(Text2_1_loc6) > 0 && LENGTH(Text3_0_loc6) > 0 && LENGTH(Text3_1_loc6) > 0 && LENGTH(Text4_0_loc6) > 0 && LENGTH(Text4_1_loc6) > 0 && LENGTH(Text5_0_loc6) > 0 && LENGTH(Text5_1_loc6) > 0 && LENGTH(Text6_0_loc6) > 0 && LENGTH(Text6_1_loc6) > 0 && LENGTH(Text7_0_loc6) > 0 && LENGTH(Text7_1_loc6) > 0);
|
||||
|
||||
INSERT INTO `npc_text_locale` (`ID`, `Locale`, `Text0_0`, `Text0_1`, `Text1_0`, `Text1_1`, `Text2_0`, `Text2_1`, `Text3_0`, `Text3_1`, `Text4_0`, `Text4_1`, `Text5_0`, `Text5_1`, `Text6_0`, `Text6_1`, `Text7_0`, `Text7_1`)
|
||||
(SELECT `ID`, "esMX", `Text0_0_loc7`, `Text0_1_loc7`, `Text1_0_loc7`, `Text1_1_loc7`, `Text2_0_loc7`, `Text2_1_loc7`, `Text3_0_loc7`, `Text3_1_loc7`, `Text4_0_loc7`, `Text4_1_loc7`, `Text5_0_loc7`, `Text5_1_loc7`, `Text6_0_loc7`, `Text6_1_loc7`, `Text7_0_loc7`, `Text7_1_loc7`
|
||||
FROM `locales_npc_text`
|
||||
WHERE LENGTH(Text0_0_loc7) > 0 && LENGTH(Text0_1_loc7) > 0 && LENGTH(Text1_0_loc7) > 0 && LENGTH(Text1_1_loc7) > 0 && LENGTH(Text2_0_loc7) > 0 && LENGTH(Text2_1_loc7) > 0 && LENGTH(Text3_0_loc7) > 0 && LENGTH(Text3_1_loc7) > 0 && LENGTH(Text4_0_loc7) > 0 && LENGTH(Text4_1_loc7) > 0 && LENGTH(Text5_0_loc7) > 0 && LENGTH(Text5_1_loc7) > 0 && LENGTH(Text6_0_loc7) > 0 && LENGTH(Text6_1_loc7) > 0 && LENGTH(Text7_0_loc7) > 0 && LENGTH(Text7_1_loc7) > 0);
|
||||
|
||||
INSERT INTO `npc_text_locale` (`ID`, `Locale`, `Text0_0`, `Text0_1`, `Text1_0`, `Text1_1`, `Text2_0`, `Text2_1`, `Text3_0`, `Text3_1`, `Text4_0`, `Text4_1`, `Text5_0`, `Text5_1`, `Text6_0`, `Text6_1`, `Text7_0`, `Text7_1`)
|
||||
(SELECT `ID`, "ruRU", `Text0_0_loc8`, `Text0_1_loc8`, `Text1_0_loc8`, `Text1_1_loc8`, `Text2_0_loc8`, `Text2_1_loc8`, `Text3_0_loc8`, `Text3_1_loc8`, `Text4_0_loc8`, `Text4_1_loc8`, `Text5_0_loc8`, `Text5_1_loc8`, `Text6_0_loc8`, `Text6_1_loc8`, `Text7_0_loc8`, `Text7_1_loc8`
|
||||
FROM `locales_npc_text`
|
||||
WHERE LENGTH(Text0_0_loc8) > 0 && LENGTH(Text0_1_loc8) > 0 && LENGTH(Text1_0_loc8) > 0 && LENGTH(Text1_1_loc8) > 0 && LENGTH(Text2_0_loc8) > 0 && LENGTH(Text2_1_loc8) > 0 && LENGTH(Text3_0_loc8) > 0 && LENGTH(Text3_1_loc8) > 0 && LENGTH(Text4_0_loc8) > 0 && LENGTH(Text4_1_loc8) > 0 && LENGTH(Text5_0_loc8) > 0 && LENGTH(Text5_1_loc8) > 0 && LENGTH(Text6_0_loc8) > 0 && LENGTH(Text6_1_loc8) > 0 && LENGTH(Text7_0_loc8) > 0 && LENGTH(Text7_1_loc8) > 0);
|
||||
|
||||
|
||||
-- Page_text_locale
|
||||
INSERT INTO `page_text_locale` (`ID`, `locale`, `Text`)
|
||||
(SELECT `entry`, "koKR", `text_loc1` FROM `locales_page_text` WHERE LENGTH(text_loc1) > 0);
|
||||
|
||||
INSERT INTO `page_text_locale` (`ID`, `locale`, `Text`)
|
||||
(SELECT `entry`, "frFR", `text_loc2` FROM `locales_page_text` WHERE LENGTH(text_loc2) > 0);
|
||||
|
||||
INSERT INTO `page_text_locale` (`ID`, `locale`, `Text`)
|
||||
(SELECT `entry`, "deDE", `text_loc3` FROM `locales_page_text` WHERE LENGTH(text_loc3) > 0);
|
||||
|
||||
INSERT INTO `page_text_locale` (`ID`, `locale`, `Text`)
|
||||
(SELECT `entry`, "zhCN", `text_loc4` FROM `locales_page_text` WHERE LENGTH(text_loc4) > 0);
|
||||
|
||||
INSERT INTO `page_text_locale` (`ID`, `locale`, `Text`)
|
||||
(SELECT `entry`, "zhTW", `text_loc5` FROM `locales_page_text` WHERE LENGTH(text_loc5) > 0);
|
||||
|
||||
INSERT INTO `page_text_locale` (`ID`, `locale`, `Text`)
|
||||
(SELECT `entry`, "esES", `text_loc6` FROM `locales_page_text` WHERE LENGTH(text_loc6) > 0);
|
||||
|
||||
INSERT INTO `page_text_locale` (`ID`, `locale`, `Text`)
|
||||
(SELECT `entry`, "esMX", `text_loc7` FROM `locales_page_text` WHERE LENGTH(text_loc7) > 0);
|
||||
|
||||
INSERT INTO `page_text_locale` (`ID`, `locale`, `Text`)
|
||||
(SELECT `entry`, "ruRU", `text_loc8` FROM `locales_page_text` WHERE LENGTH(text_loc8) > 0);
|
||||
|
||||
|
||||
-- Points_of_interest_locale
|
||||
INSERT INTO `points_of_interest_locale` (`ID`, `locale`, `Name`)
|
||||
(SELECT `entry`, "koKR", `icon_name_loc1` FROM `locales_points_of_interest` WHERE LENGTH(icon_name_loc1) > 0);
|
||||
|
||||
INSERT INTO `points_of_interest_locale` (`ID`, `locale`, `Name`)
|
||||
(SELECT `entry`, "frFR", `icon_name_loc2` FROM `locales_points_of_interest` WHERE LENGTH(icon_name_loc2) > 0);
|
||||
|
||||
INSERT INTO `points_of_interest_locale` (`ID`, `locale`, `Name`)
|
||||
(SELECT `entry`, "deDE", `icon_name_loc3` FROM `locales_points_of_interest` WHERE LENGTH(icon_name_loc3) > 0);
|
||||
|
||||
INSERT INTO `points_of_interest_locale` (`ID`, `locale`, `Name`)
|
||||
(SELECT `entry`, "zhCN", `icon_name_loc4` FROM `locales_points_of_interest` WHERE LENGTH(icon_name_loc4) > 0);
|
||||
|
||||
INSERT INTO `points_of_interest_locale` (`ID`, `locale`, `Name`)
|
||||
(SELECT `entry`, "zhTW", `icon_name_loc5` FROM `locales_points_of_interest` WHERE LENGTH(icon_name_loc5) > 0);
|
||||
|
||||
INSERT INTO `points_of_interest_locale` (`ID`, `locale`, `Name`)
|
||||
(SELECT `entry`, "esES", `icon_name_loc6` FROM `locales_points_of_interest` WHERE LENGTH(icon_name_loc6) > 0);
|
||||
|
||||
INSERT INTO `points_of_interest_locale` (`ID`, `locale`, `Name`)
|
||||
(SELECT `entry`, "esMX", `icon_name_loc7` FROM `locales_points_of_interest` WHERE LENGTH(icon_name_loc7) > 0);
|
||||
|
||||
INSERT INTO `points_of_interest_locale` (`ID`, `locale`, `Name`)
|
||||
(SELECT `entry`, "ruRU", `icon_name_loc8` FROM `locales_points_of_interest` WHERE LENGTH(icon_name_loc8) > 0);
|
||||
|
||||
-- Quest_template_locale
|
||||
INSERT INTO `quest_template_locale` (`ID`, `locale`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `RequestItemsText`, `EndText`, `CompletedText`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `VerifiedBuild`)
|
||||
(SELECT `Id`, "koKR", `Title_loc1`, `Details_loc1`, `Objectives_loc1`, `OfferRewardText_loc1`, `RequestItemsText_loc1`, `EndText_loc1`, `CompletedText_loc1`, `ObjectiveText1_loc1`, `ObjectiveText2_loc1`, `ObjectiveText3_loc1`, `ObjectiveText4_loc1`, `VerifiedBuild`
|
||||
FROM `locales_quest` WHERE LENGTH(Title_loc1) > 0);
|
||||
|
||||
INSERT INTO `quest_template_locale` (`ID`, `locale`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `RequestItemsText`, `EndText`, `CompletedText`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `VerifiedBuild`)
|
||||
(SELECT `Id`, "frFR", `Title_loc2`, `Details_loc2`, `Objectives_loc2`, `OfferRewardText_loc2`, `RequestItemsText_loc2`, `EndText_loc2`, `CompletedText_loc2`, `ObjectiveText1_loc2`, `ObjectiveText2_loc2`, `ObjectiveText3_loc2`, `ObjectiveText4_loc2`, `VerifiedBuild`
|
||||
FROM `locales_quest` WHERE LENGTH(Title_loc2) > 0);
|
||||
|
||||
INSERT INTO `quest_template_locale` (`ID`, `locale`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `RequestItemsText`, `EndText`, `CompletedText`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `VerifiedBuild`)
|
||||
(SELECT `Id`, "deDE", `Title_loc3`, `Details_loc3`, `Objectives_loc3`, `OfferRewardText_loc3`, `RequestItemsText_loc3`, `EndText_loc3`, `CompletedText_loc3`, `ObjectiveText1_loc3`, `ObjectiveText2_loc3`, `ObjectiveText3_loc3`, `ObjectiveText4_loc3`, `VerifiedBuild`
|
||||
FROM `locales_quest` WHERE LENGTH(Title_loc3) > 0);
|
||||
|
||||
INSERT INTO `quest_template_locale` (`ID`, `locale`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `RequestItemsText`, `EndText`, `CompletedText`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `VerifiedBuild`)
|
||||
(SELECT `Id`, "zhCN", `Title_loc4`, `Details_loc4`, `Objectives_loc4`, `OfferRewardText_loc4`, `RequestItemsText_loc4`, `EndText_loc4`, `CompletedText_loc4`, `ObjectiveText1_loc4`, `ObjectiveText2_loc4`, `ObjectiveText3_loc4`, `ObjectiveText4_loc4`, `VerifiedBuild`
|
||||
FROM `locales_quest` WHERE LENGTH(Title_loc4) > 0);
|
||||
|
||||
INSERT INTO `quest_template_locale` (`ID`, `locale`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `RequestItemsText`, `EndText`, `CompletedText`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `VerifiedBuild`)
|
||||
(SELECT `Id`, "zhTW", `Title_loc5`, `Details_loc5`, `Objectives_loc5`, `OfferRewardText_loc5`, `RequestItemsText_loc5`, `EndText_loc5`, `CompletedText_loc5`, `ObjectiveText1_loc5`, `ObjectiveText2_loc5`, `ObjectiveText3_loc5`, `ObjectiveText4_loc5`, `VerifiedBuild`
|
||||
FROM `locales_quest` WHERE LENGTH(Title_loc5) > 0);
|
||||
|
||||
INSERT INTO `quest_template_locale` (`ID`, `locale`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `RequestItemsText`, `EndText`, `CompletedText`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `VerifiedBuild`)
|
||||
(SELECT `Id`, "esES", `Title_loc6`, `Details_loc6`, `Objectives_loc6`, `OfferRewardText_loc6`, `RequestItemsText_loc6`, `EndText_loc6`, `CompletedText_loc6`, `ObjectiveText1_loc6`, `ObjectiveText2_loc6`, `ObjectiveText3_loc6`, `ObjectiveText4_loc6`, `VerifiedBuild`
|
||||
FROM `locales_quest` WHERE LENGTH(Title_loc6) > 0);
|
||||
|
||||
INSERT INTO `quest_template_locale` (`ID`, `locale`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `RequestItemsText`, `EndText`, `CompletedText`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `VerifiedBuild`)
|
||||
(SELECT `Id`, "esMX", `Title_loc7`, `Details_loc7`, `Objectives_loc7`, `OfferRewardText_loc7`, `RequestItemsText_loc7`, `EndText_loc7`, `CompletedText_loc7`, `ObjectiveText1_loc7`, `ObjectiveText2_loc7`, `ObjectiveText3_loc7`, `ObjectiveText4_loc7`, `VerifiedBuild`
|
||||
FROM `locales_quest` WHERE LENGTH(Title_loc7) > 0);
|
||||
|
||||
INSERT INTO `quest_template_locale` (`ID`, `locale`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `RequestItemsText`, `EndText`, `CompletedText`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `VerifiedBuild`)
|
||||
(SELECT `Id`, "ruRU", `Title_loc8`, `Details_loc8`, `Objectives_loc8`, `OfferRewardText_loc8`, `RequestItemsText_loc8`, `EndText_loc8`, `CompletedText_loc8`, `ObjectiveText1_loc8`, `ObjectiveText2_loc8`, `ObjectiveText3_loc8`, `ObjectiveText4_loc8`, `VerifiedBuild`
|
||||
FROM `locales_quest` WHERE LENGTH(Title_loc8) > 0);
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
9916
data/sql/updates/db_world/2019_01_12_03.sql
Normal file
9916
data/sql/updates/db_world/2019_01_12_03.sql
Normal file
File diff suppressed because it is too large
Load Diff
159
data/sql/updates/db_world/2019_01_12_04.sql
Normal file
159
data/sql/updates/db_world/2019_01_12_04.sql
Normal file
@@ -0,0 +1,159 @@
|
||||
-- DB update 2019_01_12_03 -> 2019_01_12_04
|
||||
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_01_12_03';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2019_01_12_03 2019_01_12_04 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1546089286503990304'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO version_db_world (`sql_rev`) VALUES ('1546089286503990304');
|
||||
|
||||
-- ----------------------------
|
||||
-- Drop old locales tables
|
||||
-- ----------------------------
|
||||
|
||||
DROP TABLE IF EXISTS `locales_achievement_reward`;
|
||||
DROP TABLE IF EXISTS `locales_broadcast_text`;
|
||||
DROP TABLE IF EXISTS `locales_creature_text`;
|
||||
DROP TABLE IF EXISTS `locales_gossip_menu_option`;
|
||||
DROP TABLE IF EXISTS `locales_item`;
|
||||
DROP TABLE IF EXISTS `locales_item_set_names`;
|
||||
DROP TABLE IF EXISTS `locales_npc_text`;
|
||||
DROP TABLE IF EXISTS `locales_page_text`;
|
||||
DROP TABLE IF EXISTS `locales_points_of_interest`;
|
||||
DROP TABLE IF EXISTS `locales_quest`;
|
||||
|
||||
-- ----------------------------
|
||||
-- Update table structure
|
||||
-- ----------------------------
|
||||
|
||||
-- creature_text
|
||||
ALTER TABLE `creature_text` CHANGE `entry` `CreatureID` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `creature_text` CHANGE `groupid` `GroupID` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `creature_text` CHANGE `id` `ID` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `creature_text` CHANGE `text` `Text` LONGTEXT;
|
||||
ALTER TABLE `creature_text` CHANGE `type` `Type` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `creature_text` CHANGE `language` `Language` TINYINT(3) NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `creature_text` CHANGE `probability` `Probability` FLOAT UNSIGNED NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `creature_text` CHANGE `emote` `Emote` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `creature_text` CHANGE `duration` `Duration` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `creature_text` CHANGE `sound` `Sound` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `creature_text` CHANGE COLUMN `BroadcastTextID` `BroadcastTextId` mediumint(6) NOT NULL DEFAULT 0 AFTER `Sound`;
|
||||
|
||||
-- npc_text
|
||||
ALTER TABLE `npc_text` ADD `BroadcastTextID0` MEDIUMINT(6) DEFAULT 0 NOT NULL AFTER `text0_1`;
|
||||
ALTER TABLE `npc_text` ADD `BroadcastTextID1` MEDIUMINT(6) DEFAULT 0 NOT NULL AFTER `text1_1`;
|
||||
ALTER TABLE `npc_text` ADD `BroadcastTextID2` MEDIUMINT(6) DEFAULT 0 NOT NULL AFTER `text2_1`;
|
||||
ALTER TABLE `npc_text` ADD `BroadcastTextID3` MEDIUMINT(6) DEFAULT 0 NOT NULL AFTER `text3_1`;
|
||||
ALTER TABLE `npc_text` ADD `BroadcastTextID4` MEDIUMINT(6) DEFAULT 0 NOT NULL AFTER `text4_1`;
|
||||
ALTER TABLE `npc_text` ADD `BroadcastTextID5` MEDIUMINT(6) DEFAULT 0 NOT NULL AFTER `text5_1`;
|
||||
ALTER TABLE `npc_text` ADD `BroadcastTextID6` MEDIUMINT(6) DEFAULT 0 NOT NULL AFTER `text6_1`;
|
||||
ALTER TABLE `npc_text` ADD `BroadcastTextID7` MEDIUMINT(6) DEFAULT 0 NOT NULL AFTER `text7_1`;
|
||||
|
||||
-- gossip_menu
|
||||
ALTER TABLE `gossip_menu` CHANGE `entry` `MenuID` smallint(5) unsigned NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `gossip_menu` CHANGE `text_id` `TextID` mediumint(8) unsigned NOT NULL DEFAULT '0';
|
||||
|
||||
-- gossip_menu_option
|
||||
ALTER TABLE `gossip_menu_option` CHANGE `menu_id` `MenuID` smallint(5) unsigned NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `gossip_menu_option` CHANGE `id` `OptionID` smallint(5) unsigned NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `gossip_menu_option` CHANGE `option_icon` `OptionIcon` mediumint(8) unsigned NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `gossip_menu_option` CHANGE `option_text` `OptionText` text;
|
||||
ALTER TABLE `gossip_menu_option` CHANGE `option_id` `OptionType` tinyint(3) unsigned NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `gossip_menu_option` CHANGE `npc_option_npcflag` `OptionNpcFlag` int(10) unsigned NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `gossip_menu_option` CHANGE `action_menu_id` `ActionMenuID` int(10) unsigned NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `gossip_menu_option` CHANGE `action_poi_id` `ActionPoiID` mediumint(8) unsigned NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `gossip_menu_option` CHANGE `box_coded` `BoxCoded` tinyint(3) unsigned NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `gossip_menu_option` CHANGE `box_money` `BoxMoney` int(10) unsigned NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `gossip_menu_option` CHANGE `box_text` `BoxText` text;
|
||||
ALTER TABLE `gossip_menu_option` ADD `OptionBroadcastTextID` MEDIUMINT(6) DEFAULT 0 NOT NULL AFTER `OptionText`;
|
||||
ALTER TABLE `gossip_menu_option` ADD `BoxBroadcastTextID` MEDIUMINT(6) DEFAULT 0 NOT NULL AFTER `BoxText`;
|
||||
ALTER TABLE `gossip_menu_option` ADD COLUMN `VerifiedBuild` smallint(5) NOT NULL DEFAULT 0 AFTER `BoxBroadcastTextID`;
|
||||
|
||||
-- ----------------------------
|
||||
-- Delete db_script_string
|
||||
-- ----------------------------
|
||||
|
||||
DROP TABLE `db_script_string`; -- RIP
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for quest_mail_sender
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `quest_mail_sender`;
|
||||
CREATE TABLE `quest_mail_sender` (
|
||||
`QuestId` int(5) UNSIGNED NOT NULL DEFAULT 0,
|
||||
`RewardMailSenderEntry` int(5) UNSIGNED NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`QuestId`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of quest_mail_sender
|
||||
-- ----------------------------
|
||||
INSERT INTO `quest_mail_sender` VALUES (8729, 11811);
|
||||
INSERT INTO `quest_mail_sender` VALUES (10588, 18166);
|
||||
INSERT INTO `quest_mail_sender` VALUES (10966, 22818);
|
||||
INSERT INTO `quest_mail_sender` VALUES (10967, 22817);
|
||||
INSERT INTO `quest_mail_sender` VALUES (12067, 2708);
|
||||
INSERT INTO `quest_mail_sender` VALUES (12085, 5885);
|
||||
INSERT INTO `quest_mail_sender` VALUES (12422, 27102);
|
||||
INSERT INTO `quest_mail_sender` VALUES (12711, 28930);
|
||||
INSERT INTO `quest_mail_sender` VALUES (13959, 33533);
|
||||
INSERT INTO `quest_mail_sender` VALUES (13960, 33532);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for quest_offer_reward_locale
|
||||
-- ----------------------------
|
||||
|
||||
DROP TABLE IF EXISTS `quest_offer_reward_locale`;
|
||||
CREATE TABLE `quest_offer_reward_locale` (
|
||||
`ID` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`locale` varchar(4) NOT NULL,
|
||||
`RewardText` text,
|
||||
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`ID`,`locale`)
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for quest_request_items_locale
|
||||
-- ----------------------------
|
||||
|
||||
DROP TABLE IF EXISTS `quest_request_items_locale`;
|
||||
CREATE TABLE `quest_request_items_locale` (
|
||||
`ID` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`locale` varchar(4) NOT NULL,
|
||||
`CompletionText` text,
|
||||
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`ID`,`locale`)
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of quest_request_items_locale and quest_offer_reward_locale
|
||||
-- ----------------------------
|
||||
|
||||
INSERT INTO `quest_request_items_locale` (`ID`, `locale`, `CompletionText`, `VerifiedBuild`) SELECT `ID`, `locale`, `RequestItemsText`, `VerifiedBuild` from `quest_template_locale` WHERE `RequestItemsText` != ""; -- Migrate data to new table
|
||||
INSERT INTO `quest_offer_reward_locale` (`ID`, `locale`, `RewardText`, `VerifiedBuild`) SELECT `ID`, `locale`, `OfferRewardText`, `VerifiedBuild` from `quest_template_locale` WHERE `OfferRewardText` != ""; -- Migrate data to new table
|
||||
|
||||
-- ----------------------------
|
||||
-- Delete columns in quest_template_locale
|
||||
-- ----------------------------
|
||||
|
||||
ALTER TABLE `quest_template_locale`
|
||||
DROP COLUMN `RequestItemsText`,
|
||||
DROP COLUMN `OfferRewardText`;
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
10666
data/sql/updates/db_world/2019_01_12_05.sql
Normal file
10666
data/sql/updates/db_world/2019_01_12_05.sql
Normal file
File diff suppressed because it is too large
Load Diff
8574
data/sql/updates/db_world/2019_01_12_06.sql
Normal file
8574
data/sql/updates/db_world/2019_01_12_06.sql
Normal file
File diff suppressed because it is too large
Load Diff
16594
data/sql/updates/db_world/2019_01_12_07.sql
Normal file
16594
data/sql/updates/db_world/2019_01_12_07.sql
Normal file
File diff suppressed because it is too large
Load Diff
4152
data/sql/updates/db_world/2019_01_12_08.sql
Normal file
4152
data/sql/updates/db_world/2019_01_12_08.sql
Normal file
File diff suppressed because it is too large
Load Diff
3348
data/sql/updates/db_world/2019_01_12_09.sql
Normal file
3348
data/sql/updates/db_world/2019_01_12_09.sql
Normal file
File diff suppressed because it is too large
Load Diff
3364
data/sql/updates/db_world/2019_01_12_10.sql
Normal file
3364
data/sql/updates/db_world/2019_01_12_10.sql
Normal file
File diff suppressed because it is too large
Load Diff
1684
data/sql/updates/db_world/2019_01_12_11.sql
Normal file
1684
data/sql/updates/db_world/2019_01_12_11.sql
Normal file
File diff suppressed because it is too large
Load Diff
230
data/sql/updates/db_world/2019_01_12_12.sql
Normal file
230
data/sql/updates/db_world/2019_01_12_12.sql
Normal file
@@ -0,0 +1,230 @@
|
||||
-- DB update 2019_01_12_11 -> 2019_01_12_12
|
||||
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_01_12_11';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2019_01_12_11 2019_01_12_12 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1546089286503990312'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO version_db_world (`sql_rev`) VALUES ('1546089286503990312');
|
||||
|
||||
-- ----------------------------
|
||||
-- Update data waypoint_scripts
|
||||
-- ----------------------------
|
||||
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 5960 WHERE `dataint` = 2000005018;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 22392 WHERE `dataint` = 2000005019;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 22050 WHERE `dataint` = 2000005020;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 22051 WHERE `dataint` = 2000005021;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 22052 WHERE `dataint` = 2000005022;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 10141 WHERE `dataint` = 2000005023;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 10146 WHERE `dataint` = 2000005024;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 10152 WHERE `dataint` = 2000005025;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 10126 WHERE `dataint` = 2000005026;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 7194 WHERE `dataint` = 2000005027;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 7193 WHERE `dataint` = 2000005028;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 7191 WHERE `dataint` = 2000005029;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 10139 WHERE `dataint` = 2000005030; -- 4.x text
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 6406 WHERE `dataint` = 2000005031;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 6405 WHERE `dataint` = 2000005032;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 10158 WHERE `dataint` = 2000005033;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 22544 WHERE `dataint` = 2000005034;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 10146 WHERE `dataint` = 2000005035;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 12835 WHERE `dataint` = 2000005036;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 12832 WHERE `dataint` = 2000005037;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 12833 WHERE `dataint` = 2000005038;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 14565 WHERE `dataint` = 2000005039;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 14567 WHERE `dataint` = 2000005040;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 15144 WHERE `dataint` = 2000005041;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 15373 WHERE `dataint` = 2000005042;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 17569 WHERE `dataint` = 2000005043; -- doesn't exist anywhere, picked a random text from the same npc
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 17563 WHERE `dataint` = 2000005044; -- doesn't exist anywhere, picked a random text from the same npc
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 16059 WHERE `dataint` = 2000005045;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 10119 WHERE `dataint` = 2000005048;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 17035 WHERE `dataint` = 2000005049;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 17045 WHERE `dataint` = 2000005050;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 17056 WHERE `dataint` = 2000005051;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 17486 WHERE `dataint` = 2000005052;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 17485 WHERE `dataint` = 2000005053;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 17485 WHERE `dataint` = 2000005054;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 17485 WHERE `dataint` = 2000005055;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 18816 WHERE `dataint` = 2000005056;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 709 WHERE `dataint` = 2000005057;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 710 WHERE `dataint` = 2000005058;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 705 WHERE `dataint` = 2000005059;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 693 WHERE `dataint` = 2000005060;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 710 WHERE `dataint` = 2000005061;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 706 WHERE `dataint` = 2000005062;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 709 WHERE `dataint` = 2000005063;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 710 WHERE `dataint` = 2000005064;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 705 WHERE `dataint` = 2000005065;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 693 WHERE `dataint` = 2000005066;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 710 WHERE `dataint` = 2000005067;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 706 WHERE `dataint` = 2000005068;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 709 WHERE `dataint` = 2000005069;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 710 WHERE `dataint` = 2000005070;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 705 WHERE `dataint` = 2000005071;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 693 WHERE `dataint` = 2000005072;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 710 WHERE `dataint` = 2000005073;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 706 WHERE `dataint` = 2000005074;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 709 WHERE `dataint` = 2000005075;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 710 WHERE `dataint` = 2000005076;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 705 WHERE `dataint` = 2000005077;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 694 WHERE `dataint` = 2000005078;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 694 WHERE `dataint` = 2000005079;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 696 WHERE `dataint` = 2000005080;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 694 WHERE `dataint` = 2000005081;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 694 WHERE `dataint` = 2000005082;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 694 WHERE `dataint` = 2000005083;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 694 WHERE `dataint` = 2000005084;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 694 WHERE `dataint` = 2000005085;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 696 WHERE `dataint` = 2000005086;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 694 WHERE `dataint` = 2000005087;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 694 WHERE `dataint` = 2000005088;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 694 WHERE `dataint` = 2000005089;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 694 WHERE `dataint` = 2000005090;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 694 WHERE `dataint` = 2000005091;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 696 WHERE `dataint` = 2000005092;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 694 WHERE `dataint` = 2000005093;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 694 WHERE `dataint` = 2000005094;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 694 WHERE `dataint` = 2000005095;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 694 WHERE `dataint` = 2000005096;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 694 WHERE `dataint` = 2000005097;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 696 WHERE `dataint` = 2000005098;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1101 WHERE `dataint` = 2000005099;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1103 WHERE `dataint` = 2000005100;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 4013 WHERE `dataint` = 2000005101;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1104 WHERE `dataint` = 2000005102;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1110 WHERE `dataint` = 2000005103;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1105 WHERE `dataint` = 2000005104;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1108 WHERE `dataint` = 2000005105;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1106 WHERE `dataint` = 2000005106;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1107 WHERE `dataint` = 2000005107;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1112 WHERE `dataint` = 2000005108;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 151 WHERE `dataint` = 2000005109;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 151 WHERE `dataint` = 2000005110;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 155 WHERE `dataint` = 2000005111;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 154 WHERE `dataint` = 2000005112;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 152 WHERE `dataint` = 2000005113;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 177 WHERE `dataint` = 2000005114;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 149 WHERE `dataint` = 2000005115;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 173 WHERE `dataint` = 2000005116;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 174 WHERE `dataint` = 2000005117;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 172 WHERE `dataint` = 2000005118;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 173 WHERE `dataint` = 2000005119;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 172 WHERE `dataint` = 2000005120;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 176 WHERE `dataint` = 2000005121;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 178 WHERE `dataint` = 2000005122;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 169 WHERE `dataint` = 2000005123;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 147 WHERE `dataint` = 2000005124;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 157 WHERE `dataint` = 2000005125;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 168 WHERE `dataint` = 2000005126;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 147 WHERE `dataint` = 2000005127;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 157 WHERE `dataint` = 2000005128;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 167 WHERE `dataint` = 2000005129;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 157 WHERE `dataint` = 2000005130;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 147 WHERE `dataint` = 2000005131;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 2874 WHERE `dataint` = 2000005132;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 10119 WHERE `dataint` = 2000005133;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1129 WHERE `dataint` = 2000005134;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1154 WHERE `dataint` = 2000005135;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1155 WHERE `dataint` = 2000005136;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1140 WHERE `dataint` = 2000005137;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1161 WHERE `dataint` = 2000005138;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1162 WHERE `dataint` = 2000005139;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1163 WHERE `dataint` = 2000005140;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1165 WHERE `dataint` = 2000005141;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1166 WHERE `dataint` = 2000005142;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 13580 WHERE `dataint` = 2000005144;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 13576 WHERE `dataint` = 2000005145;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 15119 WHERE `dataint` = 2000005147;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 209 WHERE `dataint` = 2000005148;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 224 WHERE `dataint` = 2000005149;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 225 WHERE `dataint` = 2000005150;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 213 WHERE `dataint` = 2000005151;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 225 WHERE `dataint` = 2000005152;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 225 WHERE `dataint` = 2000005153;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 224 WHERE `dataint` = 2000005154;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 214 WHERE `dataint` = 2000005155;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 217 WHERE `dataint` = 2000005156;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 210 WHERE `dataint` = 2000005157;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 205 WHERE `dataint` = 2000005158;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 216 WHERE `dataint` = 2000005159;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 212 WHERE `dataint` = 2000005160;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 208 WHERE `dataint` = 2000005161;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 214 WHERE `dataint` = 2000005162;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 215 WHERE `dataint` = 2000005163;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 206 WHERE `dataint` = 2000005164;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 212 WHERE `dataint` = 2000005165;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 214 WHERE `dataint` = 2000005166;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1153 WHERE `dataint` = 2000005167;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1130 WHERE `dataint` = 2000005168;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 201 WHERE `dataint` = 2000005169;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 218 WHERE `dataint` = 2000005170;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 222 WHERE `dataint` = 2000005171;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 221 WHERE `dataint` = 2000005172;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 204 WHERE `dataint` = 2000005173;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 222 WHERE `dataint` = 2000005174;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 219 WHERE `dataint` = 2000005175;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 218 WHERE `dataint` = 2000005176;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 221 WHERE `dataint` = 2000005177;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 219 WHERE `dataint` = 2000005178;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 222 WHERE `dataint` = 2000005179;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 587 WHERE `dataint` = 2000005180;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 589 WHERE `dataint` = 2000005181;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 590 WHERE `dataint` = 2000005182;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 588 WHERE `dataint` = 2000005183;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 1091 WHERE `dataint` = 2000005184;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 24425 WHERE `dataint` = 2000005200;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 24425 WHERE `dataint` = 2000005201;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 22216 WHERE `dataint` = 2000005202;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 22211 WHERE `dataint` = 2000005203;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 22206 WHERE `dataint` = 2000005204;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 25086 WHERE `dataint` = 2000005205;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 25073 WHERE `dataint` = 2000005206;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 25074 WHERE `dataint` = 2000005207;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 25075 WHERE `dataint` = 2000005208;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 25076 WHERE `dataint` = 2000005209;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 23842 WHERE `dataint` = 2000005210;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 328 WHERE `dataint` = 2000005400;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 327 WHERE `dataint` = 2000005401;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 5956 WHERE `dataint` = 2000005402;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 5957 WHERE `dataint` = 2000005403;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 5960 WHERE `dataint` = 2000005404;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 5959 WHERE `dataint` = 2000005405;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 24439 WHERE `dataint` = 2000005406;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 24443 WHERE `dataint` = 2000005407;
|
||||
UPDATE `waypoint_scripts` SET `dataint` = 36 WHERE `dataint` = 2000005408;
|
||||
|
||||
-- ----------------------------
|
||||
-- Update data command
|
||||
-- ----------------------------
|
||||
|
||||
INSERT INTO `command`(`name`, `security`, `help`) VALUES ('reload achievement_reward_locale', 3, 'Syntax: .reload achievement_reward_locale\nReload achievement_reward_locale table.');
|
||||
UPDATE command SET name = 'reload creature_template_locale', help = 'Syntax: .reload creature_template_locale\nReload creature_template_locale table.' WHERE name = 'reload locales_creature';
|
||||
UPDATE command SET name = 'reload creature_text_locale', help = 'Syntax: .reload creature_text_locale\nReload creature_text_locale Table.' WHERE name = 'reload locales_creature_text';
|
||||
UPDATE command SET name = 'reload gameobject_template_locale', help = 'Syntax: .reload gameobject_template_locale\nReload gameobject_template_locale table.' WHERE name = 'reload locales_gameobject';
|
||||
UPDATE command SET name = 'reload gossip_menu_option_locale', help = 'Syntax: .reload gossip_menu_option_locale\nReload gossip_menu_option_locale table.' WHERE name = 'reload locales_gossip_menu_option';
|
||||
UPDATE command SET name = 'reload item_template_locale', help = 'Syntax: .reload item_template_locale\nReload item_template_locale table.' WHERE name = 'reload locales_item';
|
||||
UPDATE command SET name = 'reload item_set_name_locale', help = 'Syntax: .reload item_set_name_locale\nReload item_set_name_locale table.' WHERE name = 'reload locales_item_set_name';
|
||||
UPDATE command SET name = 'reload npc_text_locale', help = 'Syntax: .reload npc_text_locale\nReload npc_text_locale table.' WHERE name = 'reload locales_npc_text';
|
||||
UPDATE command SET name = 'reload page_text_locale', help = 'Syntax: .reload page_text_locale\nReload page_tex_locale table.' WHERE name = 'reload locales_page_text';
|
||||
UPDATE command SET name = 'reload points_of_interest_locale', help = 'Syntax: .reload points_of_interest_locale\nReload points_of_interest_locale table.' WHERE name = 'reload locales_points_of_interest';
|
||||
UPDATE command SET name = 'reload quest_template_locale', help = 'Syntax: .reload quest_template_locale\nReload quest_template_locale table.' WHERE name = 'reload locales_quest';
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
@@ -1,14 +1,14 @@
|
||||
-- DB update 2019_01_12_01 -> 2019_01_13_00
|
||||
-- DB update 2019_01_12_12 -> 2019_01_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 = '2019_01_12_01';
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2019_01_12_12';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2019_01_12_01 2019_01_13_00 bit;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2019_01_12_12 2019_01_13_00 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1546933586341240000'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
@@ -21,7 +21,7 @@ SET @OGUID =195629;
|
||||
DELETE FROM `gameobject` WHERE `guid`=@OGUID;
|
||||
INSERT INTO `gameobject` (`guid`,`id`,`map`,`spawnMask`,`phaseMask`,`position_x`,`position_y`,`position_z`,`orientation`,`spawntimesecs`,`animprogress`,`state`, `rotation2`, `rotation3`) VALUES
|
||||
(@OGUID,103813,0,1,1,2388.808, 338.269, 37.013, 2.242750, 10, 255,1, -0.891996, -0.452044);
|
||||
|
||||
|
||||
UPDATE `gameobject_template` SET `ScriptName`="" WHERE `entry` IN (104593,176594);
|
||||
UPDATE `gameobject_template` SET `flags`=`flags`|16 WHERE `entry` IN (176594,103813);
|
||||
UPDATE `gameobject_template` SET `ScriptName`="" WHERE `entry` IN (104593,176594);
|
||||
@@ -41,7 +41,7 @@ INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type
|
||||
(639000,9,1,0,0,0,100,0,4000,4000,0,0,69,0,0,0,0,0,0,8,0,0,0,2375.29, 354.41, 38.09,0,"Ulag - action list - move to pos"),
|
||||
(639000,9,2,0,0,0,100,0,4000,4000,0,0,43,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ulag - action list - desmount"),
|
||||
(6390,0,1,0,7,0,100,0,0,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Ulag - On evadde - despawn");
|
||||
|
||||
|
||||
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceEntry`=104593;
|
||||
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
|
||||
(22,1,104593,1,0,29,1,6390,100,0,1,0,0,"","SAI triggers if Ulag is not summoned");
|
||||
|
||||
Reference in New Issue
Block a user