This commit is contained in:
tomrus88 2010-03-28 16:01:32 +04:00
parent b502d01a08
commit 589d238522
4 changed files with 4 additions and 4 deletions

View file

@ -0,0 +1 @@
alter table `mail` add column `body` longtext CHARSET utf8 COLLATE utf8_general_ci NULL after `subject`;

View file

@ -1 +0,0 @@
alter table `characters`.`mail` add column `body` longtext CHARSET utf8 COLLATE utf8_general_ci NULL after `subject`;

View file

@ -0,0 +1,3 @@
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`;

View file

@ -1,3 +0,0 @@
--- UPDATE `mail` SET `body`=(SELECT `text` FROM `item_text` WHERE `id`=`mail`.`itemtextid`) --- well i'm not good in SQL...
--- DELETE FROM item_text WHERE id IN SELECT itemtextid FROM mail;
alter table `characters`.`mail` drop column `itemTextId`;