repo.or.cz
/
auctionmangos.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Initial Patch of Auction House bot rev. 135
[auctionmangos.git]
/
sql
/
updates
/
0.6
/
2637_mail.sql
blob
3727fc1384d04d28e8efc78730e1bafc8c086038
1
ALTER TABLE `mail`
2
ADD `item_template` int(11) unsigned NOT NULL default '0' AFTER `item`;
3
4
UPDATE `mail`,`item_instance`
5
SET `item_template` = SUBSTRING_INDEX(SUBSTRING_INDEX(`data`,' ',4),' ',-1)
6
WHERE `mail`.`item` = `item_instance`.`guid`;
7