Map local guids 6.x -> 4.3.4

Ported the following commits:
ca83e14f8b
ee1c1b97be
18e4ab6911
bf37446b3c
cb854a2b7b
This commit is contained in:
ariel-
2016-01-10 19:19:19 -03:00
parent 694c89d76d
commit b3ea9fbbe5
163 changed files with 2448 additions and 2328 deletions

View 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`);