From 5b9fee4f76b8a0690f1a18c52be56fa42ffdf2bd Mon Sep 17 00:00:00 2001 From: Aokromes Date: Tue, 9 Oct 2018 16:36:01 +0200 Subject: Rename 9999_99_99_99_world_335.sql to 2018_10_09_02_world_335.sql --- .../world/3.3.5/2018_10_09_02_world_335.sql | 24 ++++++++++++++++++++++ .../world/3.3.5/9999_99_99_99_world_335.sql | 24 ---------------------- 2 files changed, 24 insertions(+), 24 deletions(-) create mode 100644 sql/updates/world/3.3.5/2018_10_09_02_world_335.sql delete mode 100644 sql/updates/world/3.3.5/9999_99_99_99_world_335.sql (limited to 'sql/updates') diff --git a/sql/updates/world/3.3.5/2018_10_09_02_world_335.sql b/sql/updates/world/3.3.5/2018_10_09_02_world_335.sql new file mode 100644 index 00000000000..fd1e431ec26 --- /dev/null +++ b/sql/updates/world/3.3.5/2018_10_09_02_world_335.sql @@ -0,0 +1,24 @@ +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`) +); + +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`) +); + +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 + +ALTER TABLE `quest_template_locale` + DROP COLUMN `RequestItemsText`, + DROP COLUMN `OfferRewardText`; diff --git a/sql/updates/world/3.3.5/9999_99_99_99_world_335.sql b/sql/updates/world/3.3.5/9999_99_99_99_world_335.sql deleted file mode 100644 index fd1e431ec26..00000000000 --- a/sql/updates/world/3.3.5/9999_99_99_99_world_335.sql +++ /dev/null @@ -1,24 +0,0 @@ -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`) -); - -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`) -); - -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 - -ALTER TABLE `quest_template_locale` - DROP COLUMN `RequestItemsText`, - DROP COLUMN `OfferRewardText`; -- cgit v1.2.3