mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
DB/Schema: Correct use of indexes on mail_items table. Prevents deadlocks in operations on this table.
This commit is contained in:
@@ -1966,8 +1966,9 @@ CREATE TABLE `mail_items` (
|
||||
`mail_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`item_guid` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`receiver` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Character Global Unique Identifier',
|
||||
PRIMARY KEY (`mail_id`,`item_guid`),
|
||||
KEY `idx_receiver` (`receiver`)
|
||||
PRIMARY KEY (`item_guid`),
|
||||
KEY `idx_receiver` (`receiver`),
|
||||
KEY `idx_mail_id` (`mail_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user