mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
7 lines
251 B
SQL
7 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`;
|
|
|