aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-08-28 20:09:44 -0300
committerariel- <ariel-@users.noreply.github.com>2016-08-28 20:15:24 -0300
commitbd4bf0a73fa29701835176ce757e2fb498b39cdc (patch)
treea3a0329aed5cb96e0003c783ca6e1b9a3fe4d3de /sql
parent8727048af67f6e416f82b4c8498d9c072069371f (diff)
Core/GameObject: migrated non-WDB fields to new gameobject_template_addon table
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/3.3.5/2016_08_29_01_world.sql18
1 files changed, 18 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2016_08_29_01_world.sql b/sql/updates/world/3.3.5/2016_08_29_01_world.sql
new file mode 100644
index 00000000000..732f5788318
--- /dev/null
+++ b/sql/updates/world/3.3.5/2016_08_29_01_world.sql
@@ -0,0 +1,18 @@
+DROP TABLE IF EXISTS `gameobject_template_addon`;
+CREATE TABLE `gameobject_template_addon`(
+ `entry` mediumint(8) UNSIGNED NOT NULL DEFAULT '0',
+ `faction` smallint(5) unsigned NOT NULL DEFAULT '0',
+ `flags` int(10) unsigned NOT NULL DEFAULT '0',
+ `mingold` mediumint(8) UNSIGNED NOT NULL DEFAULT '0',
+ `maxgold` mediumint(8) UNSIGNED NOT NULL DEFAULT '0',
+ PRIMARY KEY (`entry`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+INSERT INTO `gameobject_template_addon` (`entry`, `faction`, `flags`, `mingold`, `maxgold`)
+SELECT `entry`, `faction`, `flags`, `mingold`, `maxgold` FROM `gameobject_template`;
+
+ALTER TABLE `gameobject_template`
+DROP COLUMN `faction`,
+DROP COLUMN `flags`,
+DROP COLUMN `mingold`,
+DROP COLUMN `maxgold`;