mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 16:37:06 +00:00
SQL fix.
This commit is contained in:
parent
b502d01a08
commit
589d238522
4 changed files with 4 additions and 4 deletions
1
sql/333/1_characters_mail.sql
Normal file
1
sql/333/1_characters_mail.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
alter table `mail` add column `body` longtext CHARSET utf8 COLLATE utf8_general_ci NULL after `subject`;
|
||||
|
|
@ -1 +0,0 @@
|
|||
alter table `characters`.`mail` add column `body` longtext CHARSET utf8 COLLATE utf8_general_ci NULL after `subject`;
|
||||
3
sql/333/2_characters_mail.sql
Normal file
3
sql/333/2_characters_mail.sql
Normal 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`;
|
||||
|
|
@ -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`;
|
||||
Loading…
Add table
Add a link
Reference in a new issue