mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 04:37:02 +00:00
3 lines
222 B
SQL
3 lines
222 B
SQL
UPDATE `mail` SET `body` = (SELECT `text` FROM `item_text` WHERE `item_text`.`id`=`mail`.`itemTextId`);
|
|
DELETE FROM `item_text` WHERE `id` IN (SELECT `itemTextId` FROM `mail`);
|
|
ALTER TABLE `mail` DROP COLUMN `itemTextId`;
|