Files
TrinityCore/sql/updates/0.6/2637_mail.sql
Neo2003 9b1c0e006f [svn] * Proper SVN structure
--HG--
branch : trunk
2008-10-02 16:23:55 -05:00

8 lines
251 B
SQL

ALTER TABLE `mail`
ADD `item_template` int(11) unsigned NOT NULL default '0' AFTER `item`;
UPDATE `mail`,`item_instance`
SET `item_template` = SUBSTRING_INDEX(SUBSTRING_INDEX(`data`,' ',4),' ',-1)
WHERE `mail`.`item` = `item_instance`.`guid`;