server/sql/updates/7015_01_mangos_item_template.sql
VladimirMangos ee505ec9da [7015] Implement support -1 in item_template.stackable and item_template.maxcount fields.
Also disable incorrect used vanity pets/currences/quest items special slotes. All items in its will be send by mail to characters at re-login.
Fixed code for item stacks operations with size > 255.
2009-01-03 19:19:53 +03:00

14 lines
490 B
SQL

ALTER TABLE db_version CHANGE COLUMN required_7002_01_mangos_spell_chain required_7015_01_mangos_item_template bit;
UPDATE item_template
SET maxcount = 0 WHERE maxcount > 32000;
UPDATE item_template
SET stackable = 0 WHERE stackable > 32000;
ALTER TABLE item_template
CHANGE COLUMN maxcount maxcount smallint(5) NOT NULL default '-1',
CHANGE COLUMN stackable stackable smallint(5) NOT NULL default '1';
UPDATE item_template
SET stackable = -1 WHERE stackable = 0;