mirror of
https://github.com/mangosfour/server.git
synced 2025-12-24 01:37:02 +00:00
6 lines
282 B
SQL
6 lines
282 B
SQL
ALTER TABLE `auctionhouse`
|
|
ADD `item_template` int(11) unsigned NOT NULL default '0' AFTER `itemguid`;
|
|
|
|
UPDATE `auctionhouse`,`item_instance`
|
|
SET `item_template` = SUBSTRING_INDEX(SUBSTRING_INDEX(`data`,' ',4),' ',-1)
|
|
WHERE `auctionhouse`.`itemguid` = `item_instance`.`guid`;
|