DB Updates

This commit is contained in:
Hondacrx
2024-09-02 22:53:50 -04:00
parent f7b184dd1d
commit 213e1bc968
414 changed files with 254129 additions and 40 deletions
@@ -1,3 +1,3 @@
-- TDB 1025.24021 characters
-- TDB 1027.24051 characters
UPDATE `updates` SET `state`='ARCHIVED',`speed`=0;
REPLACE INTO `updates_include` (`path`, `state`) VALUES ('$/sql/old/10.x/characters', 'ARCHIVED');
@@ -0,0 +1,5 @@
ALTER TABLE `groups` ADD `pingRestriction` tinyint AFTER `masterLooterGuid`;
UPDATE `groups` SET `pingRestriction`=0;
ALTER TABLE `groups` MODIFY `pingRestriction` tinyint NOT NULL;
@@ -0,0 +1,3 @@
DELETE FROM `character_trait_entry` WHERE `Rank`=0;
ALTER TABLE `character_trait_entry` DROP `grantedRanks`;
@@ -0,0 +1,23 @@
DELETE
ctc,
cte,
ca
FROM
character_trait_config AS ctc
LEFT JOIN (
SELECT
ctc2.guid AS guid,
MIN(ctc2.traitConfigId) AS traitConfigId
FROM
character_trait_config ctc2
WHERE
ctc2.type = 3
GROUP BY
ctc2.guid,
ctc2.traitSystemId
) AS minctc ON ctc.guid = minctc.guid AND ctc.traitConfigId = minctc.traitConfigId
LEFT JOIN character_trait_entry AS cte ON ctc.guid = cte.guid AND ctc.traitConfigId = cte.traitConfigId
LEFT JOIN character_action AS ca ON ctc.guid = ca.guid AND ctc.traitConfigId = ca.traitConfigId
WHERE
ctc.type = 3 AND
minctc.traitConfigId IS NULL;