mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Core/CharDB cleanup: change creature_respawn and gameobject_respawn column names to lowerCamel, rename instance column to instanceId and move all queries to these tables to prepared statements.
Fix import error in character_database.sql.
This commit is contained in:
@@ -1213,7 +1213,7 @@ CREATE TABLE `corpse` (
|
||||
`corpseType` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
||||
`instanceId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Instance Identifier',
|
||||
PRIMARY KEY (`guid`),
|
||||
KEY `idx_type` (`corpse_type`),
|
||||
KEY `idx_type` (`corpseType`),
|
||||
KEY `instance` (`instanceId`),
|
||||
KEY `Idx_player` (`player`),
|
||||
KEY `Idx_time` (`time`)
|
||||
@@ -1238,10 +1238,10 @@ DROP TABLE IF EXISTS `creature_respawn`;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `creature_respawn` (
|
||||
`guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
|
||||
`respawntime` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`instance` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`guid`,`instance`),
|
||||
KEY `instance` (`instance`)
|
||||
`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`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Grid Loading System';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
@@ -1311,10 +1311,10 @@ DROP TABLE IF EXISTS `gameobject_respawn`;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `gameobject_respawn` (
|
||||
`guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
|
||||
`respawntime` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`instance` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`guid`,`instance`),
|
||||
KEY `instance` (`instance`)
|
||||
`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`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Grid Loading System';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user