DB Updates

This commit is contained in:
Hondacrx
2024-11-10 00:15:32 -05:00
parent c39e7bc255
commit 46643bd178
230 changed files with 175078 additions and 435 deletions
@@ -1,5 +0,0 @@
ALTER TABLE `groups` ADD `pingRestriction` tinyint AFTER `masterLooterGuid`;
UPDATE `groups` SET `pingRestriction`=0;
ALTER TABLE `groups` MODIFY `pingRestriction` tinyint NOT NULL;
@@ -1,3 +0,0 @@
DELETE FROM `character_trait_entry` WHERE `Rank`=0;
ALTER TABLE `character_trait_entry` DROP `grantedRanks`;
@@ -1,23 +0,0 @@
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;
@@ -1,3 +1,3 @@
-- TDB 1027.24051 characters
-- TDB 1102.24091 characters
UPDATE `updates` SET `state`='ARCHIVED',`speed`=0;
REPLACE INTO `updates_include` (`path`, `state`) VALUES ('$/sql/old/10.x/characters', 'ARCHIVED');
REPLACE INTO `updates_include` (`path`, `state`) VALUES ('$/sql/old/11.x/characters', 'ARCHIVED');