aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorBrian <runningnak3d@gmail.com>2009-12-20 09:27:44 -0700
committerBrian <runningnak3d@gmail.com>2009-12-20 09:27:44 -0700
commitea785c9788203b4a7d57ae37f21c45ff0c7a4167 (patch)
tree96e7e85ca557e1cf96087dc6892b232683a9b3c2 /sql
parent7c9f6b4bc37eec7b94aaba1cd8912bd5c0054e2a (diff)
* Added support for GO type 6 (TRAP) to have a negative value in data6
* This will allow proper data to be used --HG-- branch : trunk
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/6645_world_gameobject_template.sql5
-rw-r--r--sql/world.sql2
2 files changed, 6 insertions, 1 deletions
diff --git a/sql/updates/6645_world_gameobject_template.sql b/sql/updates/6645_world_gameobject_template.sql
new file mode 100644
index 00000000000..aca6bc97e11
--- /dev/null
+++ b/sql/updates/6645_world_gameobject_template.sql
@@ -0,0 +1,5 @@
+-- Alter data6 column in gameobject_template to allow signed value
+ALTER TABLE `gameobject_template` CHANGE `data6` `data6temp` INT(10);
+ALTER TABLE `gameobject_template` ADD `data6` INT SIGNED NOT NULL AFTER `data5`;
+UPDATE `gameobject_template` SET `data6` = `data6temp`;
+ALTER TABLE `gameobject_template` DROP `data6temp`;
diff --git a/sql/world.sql b/sql/world.sql
index 3de75d0c3dc..2262e677378 100644
--- a/sql/world.sql
+++ b/sql/world.sql
@@ -1147,7 +1147,7 @@ CREATE TABLE `gameobject_template` (
`data3` int(10) unsigned NOT NULL default '0',
`data4` int(10) unsigned NOT NULL default '0',
`data5` int(10) unsigned NOT NULL default '0',
- `data6` int(10) unsigned NOT NULL default '0',
+ `data6` int(10) signed NOT NULL default '0',
`data7` int(10) unsigned NOT NULL default '0',
`data8` int(10) unsigned NOT NULL default '0',
`data9` int(10) unsigned NOT NULL default '0',