From a26b4ff95e5f3100ee9860bc723aced8f4bc749f Mon Sep 17 00:00:00 2001 From: Azazel Date: Thu, 14 Apr 2011 11:31:15 +0600 Subject: 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). --- sql/base/characters_database.sql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sql/base') diff --git a/sql/base/characters_database.sql b/sql/base/characters_database.sql index 3ac49e0b8b3..29fa888ed78 100644 --- a/sql/base/characters_database.sql +++ b/sql/base/characters_database.sql @@ -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 */; -- cgit v1.2.3