root/trunk/sql/updates/0.6/2637_mail.sql @ 2

Revision 2, 251 bytes (checked in by yumileroy, 17 years ago)

[svn] * Proper SVN structure

Original author: Neo2003
Date: 2008-10-02 16:23:55-05:00

Line 
1ALTER TABLE `mail`
2  ADD `item_template` int(11) unsigned NOT NULL default '0' AFTER `item`;
3
4UPDATE `mail`,`item_instance`
5  SET `item_template` = SUBSTRING_INDEX(SUBSTRING_INDEX(`data`,' ',4),' ',-1)
6  WHERE `mail`.`item` = `item_instance`.`guid`;
7
Note: See TracBrowser for help on using the browser.