aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorBrian <runningnak3d@gmail.com>2009-12-20 09:03:45 -0700
committerBrian <runningnak3d@gmail.com>2009-12-20 09:03:45 -0700
commit31c6b10a192671562f38f17f9e6270979ebe417c (patch)
treed634d126121438569fb75edd35e7e4ff21450a9f /sql
parent857fa2e4f6fb9c5e5821da2af6baccf22797261b (diff)
* Add support for the use of Gameobject type 10 (GOOBER) use when not on quest
* if data1=-1 --HG-- branch : trunk
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/6643_world_gameobject_template.sql5
-rw-r--r--sql/world.sql2
2 files changed, 6 insertions, 1 deletions
diff --git a/sql/updates/6643_world_gameobject_template.sql b/sql/updates/6643_world_gameobject_template.sql
new file mode 100644
index 00000000000..4eda62ba17b
--- /dev/null
+++ b/sql/updates/6643_world_gameobject_template.sql
@@ -0,0 +1,5 @@
+-- Alter data1 column in gameobject_template to allow signed value
+ALTER TABLE `gameobject_template` CHANGE `data1` `data1temp` INT(10);
+ALTER TABLE `gameobject_template` ADD `data1` INT SIGNED NOT NULL DEFAULT '-1' AFTER `data0`;
+UPDATE `gameobject_template` SET `data1` = `data1temp`;
+ALTER TABLE `gameobject_template` DROP `data1temp`;
diff --git a/sql/world.sql b/sql/world.sql
index 8b24229629e..da84099a59e 100644
--- a/sql/world.sql
+++ b/sql/world.sql
@@ -1141,7 +1141,7 @@ CREATE TABLE `gameobject_template` (
`questItem5` int(11) unsigned NOT NULL default '0',
`questItem6` int(11) unsigned NOT NULL default '0',
`data0` int(10) unsigned NOT NULL default '0',
- `data1` int(10) unsigned NOT NULL default '0',
+ `data1` int(10) signed NOT NULL default '-1',
`data2` int(10) unsigned NOT NULL default '0',
`data3` int(10) unsigned NOT NULL default '0',
`data4` int(10) unsigned NOT NULL default '0',