port over some changes from Trinity version including one possible memory leak fix
[AHbot.git] / sql / updates / 7015_01_mangos_item_template.sql
blobbdf9a92e7962839d80da1c546f2f7cfc7e351876
1 ALTER TABLE db_version CHANGE COLUMN required_7002_01_mangos_spell_chain required_7015_01_mangos_item_template bit;
3 UPDATE item_template
4     SET maxcount = 0 WHERE maxcount > 32000;
6 UPDATE item_template
7     SET stackable = 0 WHERE stackable > 32000;
9 ALTER TABLE item_template
10     CHANGE COLUMN maxcount  maxcount  smallint(5) NOT NULL default '-1',
11     CHANGE COLUMN stackable stackable smallint(5) NOT NULL default '1';
13 UPDATE item_template
14     SET stackable = -1 WHERE stackable = 0;