server/sql/updates/0.16/09636_01_mangos_item_template.sql
VladimirMangos cd5d598bd6 [10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev.
* order guards not affected in sql updates so this not affect sql guards work.
* TO DEVS: in next sql update commit please check carefully generated by git_is -s
  sql guards for correctness
2010-05-28 23:48:50 +04:00

13 lines
458 B
SQL

ALTER TABLE db_version CHANGE COLUMN required_9622_01_mangos_gameobject required_9636_01_mangos_item_template bit;
ALTER TABLE item_template
CHANGE COLUMN NonConsumable ExtraFlags tinyint(1) UNSIGNED DEFAULT '0' NOT NULL;
UPDATE item_template
SET ExtraFlags = ExtraFlags | 0x2 WHERE Duration < 0 ;
UPDATE item_template
SET Duration = abs(Duration);
ALTER TABLE item_template
CHANGE COLUMN Duration Duration int(11) UNSIGNED DEFAULT '0' NOT NULL;