mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[9711] Include in 9692_02_characters_mail.sql convertor for items.
It included in swith time sql update for use in cases not converted yes characters DB. It can be not 100% safe used for already used in 3.3.3 mode chaarcters data. BUT if you want you can use it at own choice ofc. Fixed durability problem after switch. Converted non-bag items only. Bags not have normally item text and durability.
This commit is contained in:
parent
6ef88699d1
commit
c6fc16d064
2 changed files with 13 additions and 1 deletions
|
|
@ -3,3 +3,15 @@ ALTER TABLE character_db_version CHANGE COLUMN required_9692_01_characters_mail
|
|||
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`;
|
||||
|
||||
|
||||
UPDATE item_instance SET data = REPLACE(data,' ',' ');
|
||||
UPDATE item_instance SET data = CONCAT(TRIM(data),' ');
|
||||
|
||||
UPDATE `item_instance` SET `data` = CONCAT(
|
||||
SUBSTRING_INDEX(`data`, ' ', 59 + 1), ' ',
|
||||
SUBSTRING_INDEX(`data`, ' ', -3 -1), '0 ')
|
||||
WHERE length(SUBSTRING_INDEX(data, ' ', 64)) < length(data) and length(SUBSTRING_INDEX(data, ' ', 64+1)) >= length(data);
|
||||
|
||||
UPDATE item_instance SET data = REPLACE(data,' ',' ');
|
||||
UPDATE item_instance SET data = CONCAT(TRIM(data),' ');
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9710"
|
||||
#define REVISION_NR "9711"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue