mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
[10001] Rename current version sql updates (0.16/root dir) to 5 digits format rev.
* order guards not affected in sql updates so this not affect sql guards work. * TO DEVS: in next sql update commit please check carefully generated by git_is -s sql guards for correctness
This commit is contained in:
parent
d9a8c63007
commit
cd5d598bd6
131 changed files with 1 additions and 1 deletions
16
sql/updates/09692_02_characters_mail.sql
Normal file
16
sql/updates/09692_02_characters_mail.sql
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
ALTER TABLE character_db_version CHANGE COLUMN required_9692_01_characters_mail required_9692_02_characters_mail bit;
|
||||
|
||||
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),' ');
|
||||
Loading…
Add table
Add a link
Reference in a new issue