From 2f5403d4af3a90a6e51a377e05a55a0d197afb4d Mon Sep 17 00:00:00 2001 From: AlcDenat Date: Tue, 9 Oct 2018 16:31:27 +0200 Subject: Split quest template locales (#22596) * add quest locales tables --- .../world/3.3.5/9999_99_99_99_world_335.sql | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 sql/updates/world/3.3.5/9999_99_99_99_world_335.sql (limited to 'sql') 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 new file mode 100644 index 00000000000..fd1e431ec26 --- /dev/null +++ b/sql/updates/world/3.3.5/9999_99_99_99_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`; -- cgit v1.2.3