TDB 927.22111 - 2022/11/20

Port From (https://github.com/TrinityCore/TrinityCore/commit/85205d8ca5d41e4eca09619ebf46d92e7b925aaa)
This commit is contained in:
hondacrx
2022-12-17 17:09:35 -05:00
parent 3b179a018e
commit a4ebb8455d
389 changed files with 86931 additions and 55 deletions
@@ -1 +0,0 @@
ALTER TABLE `character_action` MODIFY `action` bigint unsigned NOT NULL DEFAULT 0;
@@ -1,30 +0,0 @@
--
-- Table structure for table `character_instance_lock`
--
DROP TABLE IF EXISTS `character_instance_lock`;
CREATE TABLE `character_instance_lock` (
`guid` bigint unsigned NOT NULL,
`mapId` int unsigned NOT NULL,
`lockId` int unsigned NOT NULL,
`instanceId` int unsigned DEFAULT NULL,
`difficulty` tinyint unsigned DEFAULT NULL,
`data` text COLLATE utf8mb4_unicode_ci,
`completedEncountersMask` int unsigned DEFAULT NULL,
`entranceWorldSafeLocId` int unsigned DEFAULT NULL,
`expiryTime` bigint unsigned DEFAULT NULL,
`extended` tinyint unsigned DEFAULT NULL,
PRIMARY KEY (`guid`,`mapId`,`lockId`),
UNIQUE KEY `uk_character_instanceId` (`guid`,`instanceId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `instance`
--
DROP TABLE IF EXISTS `instance`;
CREATE TABLE `instance` (
`instanceId` int unsigned NOT NULL,
`data` text COLLATE utf8mb4_unicode_ci,
`completedEncountersMask` int unsigned DEFAULT NULL,
`entranceWorldSafeLocId` int unsigned DEFAULT NULL,
PRIMARY KEY (`instanceId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
@@ -1,3 +0,0 @@
DROP TABLE IF EXISTS `character_instance`;
DROP TABLE IF EXISTS `group_instance`;
DROP TABLE IF EXISTS `instance_reset`;
@@ -1 +0,0 @@
DROP TABLE IF EXISTS `instance_scenario_progress`;
@@ -1,3 +1,3 @@
-- TDB 927.22082 characters
-- TDB 927.22111 characters
UPDATE `updates` SET `state`='ARCHIVED',`speed`=0;
REPLACE INTO `updates_include` (`path`, `state`) VALUES ('$/sql/old/9.x/characters', 'ARCHIVED');
@@ -0,0 +1,47 @@
ALTER TABLE `character_inventory` ADD `newSlot` tinyint unsigned;
ALTER TABLE `character_inventory` DROP INDEX `guid`;
UPDATE `character_inventory` SET `newSlot`=`slot`;
UPDATE `character_inventory` SET `newSlot`=`slot`+12 WHERE `slot`>=23 AND `bag`=0; -- free up space for reagent bag
UPDATE `character_inventory` SET `newSlot`=`slot`+11 WHERE `slot` BETWEEN 19 AND 22 AND `bag`=0; -- free up space for profession equipment
UPDATE `character_inventory` SET `slot`=`newSlot`;
ALTER TABLE `character_inventory` ADD UNIQUE KEY `uk_location` (`guid`,`bag`,`slot`);
ALTER TABLE `character_inventory` DROP `newSlot`;
UPDATE `characters` SET `equipmentCache`=CONCAT(`equipmentCache`, '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ');
--
-- Table structure for table `character_trait_entry`
--
DROP TABLE IF EXISTS `character_trait_entry`;
CREATE TABLE `character_trait_entry` (
`guid` bigint unsigned NOT NULL,
`traitConfigId` int NOT NULL,
`traitNodeId` int NOT NULL,
`traitNodeEntryId` int NOT NULL,
`rank` int NOT NULL DEFAULT '0',
`grantedRanks` int NOT NULL DEFAULT '0',
PRIMARY KEY (`guid`,`traitConfigId`,`traitNodeId`,`traitNodeEntryId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `character_trait_config`
--
DROP TABLE IF EXISTS `character_trait_config`;
CREATE TABLE `character_trait_config` (
`guid` bigint unsigned NOT NULL,
`traitConfigId` int NOT NULL,
`type` int NOT NULL,
`chrSpecializationId` int DEFAULT NULL,
`combatConfigFlags` int DEFAULT NULL,
`localIdentifier` int DEFAULT NULL,
`skillLineId` int DEFAULT NULL,
`traitSystemId` int DEFAULT NULL,
`name` varchar(260) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
PRIMARY KEY (`guid`,`traitConfigId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `character_action` ADD `traitConfigId` int NOT NULL DEFAULT 0 AFTER `spec`;
ALTER TABLE `character_action` DROP PRIMARY KEY;
ALTER TABLE `character_action` ADD PRIMARY KEY (`guid`,`spec`,`traitConfigId`,`button`);
DELETE FROM `character_talent`;
@@ -0,0 +1,9 @@
--
-- Table structure for table `character_spell_favorite`
--
DROP TABLE IF EXISTS `character_spell_favorite`;
CREATE TABLE `character_spell_favorite` (
`guid` bigint unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
`spell` int unsigned NOT NULL DEFAULT '0' COMMENT 'Spell Identifier',
PRIMARY KEY (`guid`,`spell`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Player System';