mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Map local guids 6.x -> 4.3.4
Ported the following commits:ca83e14f8bee1c1b97be18e4ab6911bf37446b3ccb854a2b7b
This commit is contained in:
@@ -1417,7 +1417,6 @@ DROP TABLE IF EXISTS `corpse`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `corpse` (
|
||||
`corpseGuid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
|
||||
`guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Character Global Unique Identifier',
|
||||
`posX` float NOT NULL DEFAULT '0',
|
||||
`posY` float NOT NULL DEFAULT '0',
|
||||
@@ -1433,10 +1432,9 @@ 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 (`corpseGuid`),
|
||||
PRIMARY KEY (`guid`),
|
||||
KEY `idx_type` (`corpseType`),
|
||||
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 */;
|
||||
@@ -1458,12 +1456,9 @@ DROP TABLE IF EXISTS `corpse_phases`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `corpse_phases` (
|
||||
`Guid` int(10) unsigned NOT NULL,
|
||||
`OwnerGuid` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`PhaseId` int(10) unsigned NOT NULL,
|
||||
`OwnerGuid` int(10) unsigned NOT NULL,
|
||||
`Time` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`CorpseType` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`Guid`,`PhaseId`)
|
||||
PRIMARY KEY (`OwnerGuid`,`PhaseId`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Grid Loading System';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
||||
18
sql/updates/characters/2015_08_26_00_characters_from_335.sql
Normal file
18
sql/updates/characters/2015_08_26_00_characters_from_335.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
-- Keep only the highest guid PvE or PvP (not bones) corpse per player guid
|
||||
DELETE c FROM `corpse` c LEFT JOIN
|
||||
(
|
||||
SELECT MAX(`guid`) AS id
|
||||
FROM `corpse`
|
||||
WHERE `corpseType` IN (1,2)
|
||||
GROUP BY `guid`
|
||||
) corpsetemp
|
||||
ON c.`guid` = corpsetemp.`id`
|
||||
WHERE corpsetemp.`id` IS NULL;
|
||||
|
||||
ALTER TABLE `corpse_phases`
|
||||
DROP PRIMARY KEY,
|
||||
DROP `Guid`,
|
||||
DROP `CorpseType`,
|
||||
DROP `Time`,
|
||||
CHANGE `OwnerGuid` `OwnerGuid` int(10) unsigned NOT NULL DEFAULT '0' FIRST,
|
||||
ADD PRIMARY KEY (`OwnerGuid`, `PhaseId`);
|
||||
3
sql/updates/world/2015_09_11_56_world_from_335.sql
Normal file
3
sql/updates/world/2015_09_11_56_world_from_335.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `trinity_string`
|
||||
SET `content_default` = 'Object GUID is: %s'
|
||||
WHERE `entry`=201;
|
||||
Reference in New Issue
Block a user