aboutsummaryrefslogtreecommitdiff
path: root/sql/updates/0.6/3032_creature.sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql/updates/0.6/3032_creature.sql')
-rw-r--r--sql/updates/0.6/3032_creature.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/updates/0.6/3032_creature.sql b/sql/updates/0.6/3032_creature.sql
new file mode 100644
index 00000000000..7acf3578878
--- /dev/null
+++ b/sql/updates/0.6/3032_creature.sql
@@ -0,0 +1,7 @@
+/*delete redundant column from creature table*/
+ALTER TABLE `creature` ADD COLUMN `spawntimesecs` int(11) unsigned NOT NULL default '120' AFTER `spawntimemin`;
+
+UPDATE creature SET `spawntimesecs`= (spawntimemin + spawntimemax) /2;
+
+ALTER TABLE creature DROP COLUMN spawntimemax;
+ALTER TABLE creature DROP COLUMN spawntimemin; \ No newline at end of file