aboutsummaryrefslogtreecommitdiff
path: root/sql/updates
diff options
context:
space:
mode:
Diffstat (limited to 'sql/updates')
-rw-r--r--sql/updates/world/3.3.5/9999_99_99_99_world_335.sql24
1 files changed, 24 insertions, 0 deletions
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`;