DB/Schema: Add index to characters.character_pet.slot. Prevents deadlocks when operating on this table.

This commit is contained in:
Machiavelli
2011-05-29 18:28:54 +02:00
parent 0a80a06a39
commit 05cc29b54a
2 changed files with 4 additions and 1 deletions

View File

@@ -743,7 +743,8 @@ CREATE TABLE `character_pet` (
`resettalents_time` int(10) unsigned NOT NULL DEFAULT '0',
`abdata` text,
PRIMARY KEY (`id`),
KEY `owner` (`owner`)
KEY `owner` (`owner`),
KEY `idx_slot` (`slot`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Pet System';
/*!40101 SET character_set_client = @saved_cs_client */;