diff options
| author | n0n4m3 <none@none> | 2010-04-11 11:35:46 +0400 |
|---|---|---|
| committer | n0n4m3 <none@none> | 2010-04-11 11:35:46 +0400 |
| commit | c03240d79b58c3e30f45b6effdb7b438bd539349 (patch) | |
| tree | 36b47e9f8dc5ff5b61df61e45c37977f9529e116 /sql/updates | |
| parent | 0d48d3bd8c0569968a8775b471752782831e8b03 (diff) | |
Add sql for drop mail column 'itemtextid' and add new column 'body'.
--HG--
branch : trunk
Diffstat (limited to 'sql/updates')
| -rw-r--r-- | sql/updates/7845_characters_mail.sql | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/updates/7845_characters_mail.sql b/sql/updates/7845_characters_mail.sql new file mode 100644 index 00000000000..124322380c5 --- /dev/null +++ b/sql/updates/7845_characters_mail.sql @@ -0,0 +1,5 @@ +ALTER TABLE `mail` ADD COLUMN `body` longtext CHARSET utf8 COLLATE utf8_general_ci NULL after `subject`; + +UPDATE `mail` LEFT JOIN `item_text` ON `mail`.`itemtextid` = `item_text`.`id` SET `mail`.`body`=`item_text`.`text`; +DELETE item_text FROM mail, item_text WHERE mail.itemtextid = item_text.id; +ALTER TABLE `mail` DROP COLUMN `itemtextid`; |
