root/trunk/sql/updates/0.6/2637_mail.sql
@
2
Revision 2, 251 bytes (checked in by yumileroy, 17 years ago) |
---|
Line | |
---|---|
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 |
Note: See TracBrowser
for help on using the browser.