mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
Core/SQL: fix a few minor mishaps with wrong keys not being updated in commit 5357b1ba77 - fixes import of base characters database (thanks click for pointing out). Closes #1231.
Also rename indexes in recently cleaned tables to have 'idx_' prefix. Add queries to recreate indexes based on recently modified columns (just to make sure that all indexes are correct).
This commit is contained in:
@@ -1212,11 +1212,11 @@ CREATE TABLE `corpse` (
|
||||
`time` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`corpseType` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
||||
`instanceId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Instance Identifier',
|
||||
PRIMARY KEY (`guid`),
|
||||
PRIMARY KEY (`corpseGuid`),
|
||||
KEY `idx_type` (`corpseType`),
|
||||
KEY `instance` (`instanceId`),
|
||||
KEY `Idx_player` (`player`),
|
||||
KEY `Idx_time` (`time`)
|
||||
KEY `idx_instance` (`instanceId`),
|
||||
KEY `idx_player` (`guid`),
|
||||
KEY `idx_time` (`time`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Death System';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
@@ -1241,7 +1241,7 @@ CREATE TABLE `creature_respawn` (
|
||||
`respawnTime` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`instanceId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Instance Identifier',
|
||||
PRIMARY KEY (`guid`,`instanceId`),
|
||||
KEY `instance` (`instanceId`)
|
||||
KEY `idx_instance` (`instanceId`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Grid Loading System';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
@@ -1314,7 +1314,7 @@ CREATE TABLE `gameobject_respawn` (
|
||||
`respawnTime` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`instanceId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Instance Identifier',
|
||||
PRIMARY KEY (`guid`,`instanceId`),
|
||||
KEY `instance` (`instanceId`)
|
||||
KEY `idx_instance` (`instanceId`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Grid Loading System';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user