mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
8 lines
411 B
SQL
8 lines
411 B
SQL
ALTER TABLE mail_items
|
|
ADD COLUMN receiver int(11) unsigned NOT NULL default 0 COMMENT 'Character Global Unique Identifier' AFTER item_template;
|
|
|
|
UPDATE mail_items, mail
|
|
SET mail_items.receiver = mail.receiver WHERE mail_items.mail_id = mail.id;
|
|
|
|
DELETE FROM item_instance WHERE guid IN (SELECT item_guid FROM mail_items WHERE mail_items.receiver = 0);
|
|
DELETE FROM mail_items WHERE mail_items.receiver = 0;
|