diff options
| author | AlcDenat <alcdenat@hotmail.com> | 2018-10-09 16:31:27 +0200 |
|---|---|---|
| committer | jackpoz <giacomopoz@gmail.com> | 2018-10-09 16:31:27 +0200 |
| commit | 2f5403d4af3a90a6e51a377e05a55a0d197afb4d (patch) | |
| tree | 2e396a1631a3a53056b350ea9eb3ea644783d183 /sql/updates | |
| parent | f97cfe673f9958228be8bbc45a5bc12f5346096e (diff) | |
Split quest template locales (#22596)
* add quest locales tables
Diffstat (limited to 'sql/updates')
| -rw-r--r-- | sql/updates/world/3.3.5/9999_99_99_99_world_335.sql | 24 |
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`; |
