diff options
| author | Aokromes <aokromes@gmail.com> | 2017-11-04 04:19:21 +0100 |
|---|---|---|
| committer | Aokromes <aokromes@gmail.com> | 2017-11-04 04:19:21 +0100 |
| commit | fadc482c37e40da034cca36683402246d1901094 (patch) | |
| tree | 5186da2b69ffa2f6272a51f5c8099c951dd86f2f /sql | |
| parent | e64f7a5ed8716b8aecde5cc4c0cd86f0a4d81f36 (diff) | |
Core/Misc: Update locales_creature_text to simple system
Diffstat (limited to 'sql')
| -rw-r--r-- | sql/updates/world/master/2017_11_04_00_world.sql | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/sql/updates/world/master/2017_11_04_00_world.sql b/sql/updates/world/master/2017_11_04_00_world.sql new file mode 100644 index 00000000000..cee322ee811 --- /dev/null +++ b/sql/updates/world/master/2017_11_04_00_world.sql @@ -0,0 +1,56 @@ +-- 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'; + +-- creature_text_locale +DROP TABLE IF EXISTS `creature_text_locale`; +CREATE TABLE IF NOT EXISTS `creature_text_locale` ( + `CreatureID` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', + `GroupID` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0', + `ID` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0', + `Locale` VARCHAR(4) NOT NULL, + `Text` TEXT, + PRIMARY KEY (`CreatureID`, `GroupID`, `ID`) +) ENGINE=MYISAM DEFAULT CHARSET=utf8; + +-- koKR +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); + +-- frFR +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); + +-- deDE +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); + +-- zhCN +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); + +-- zhTW +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); + +-- esES +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); + +-- esMX +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); + +-- ruRU +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); + +DROP TABLE IF EXISTS `locales_creature_text`; |
