Skip to content

Commit

Permalink
Merge pull request #326 from TrinityCore/master
Browse files Browse the repository at this point in the history
Update 09.28.24
  • Loading branch information
KamiliaBlow authored Sep 28, 2024
2 parents 713a4b3 + 89f490b commit 40d3926
Show file tree
Hide file tree
Showing 19 changed files with 1,323 additions and 382 deletions.
15 changes: 8 additions & 7 deletions sql/base/auth_database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2765,7 +2765,7 @@ CREATE TABLE `realmlist` (
`flag` tinyint unsigned NOT NULL DEFAULT '2',
`timezone` tinyint unsigned NOT NULL DEFAULT '0',
`allowedSecurityLevel` tinyint unsigned NOT NULL DEFAULT '0',
`population` float unsigned NOT NULL DEFAULT '0',
`population` float NOT NULL DEFAULT '0',
`gamebuild` int unsigned NOT NULL DEFAULT '56647',
`Region` tinyint unsigned NOT NULL DEFAULT '1',
`Battlegroup` tinyint unsigned NOT NULL DEFAULT '1',
Expand Down Expand Up @@ -3241,7 +3241,8 @@ INSERT INTO `updates` VALUES
('2024_09_11_00_auth.sql','8B810B5EB20D769A50A2D01411BBD065732E4EE6','ARCHIVED','2024-09-11 12:23:18',0),
('2024_09_18_00_auth.sql','073B6E954B585CD81BFADD58CDAD166E85D2653A','ARCHIVED','2024-09-18 10:26:42',0),
('2024_09_18_01_auth.sql','6AE1437E24D4837EB2347ADAA80A4093CA9F6D67','ARCHIVED','2024-09-18 21:30:31',0),
('2024_09_23_00_auth.sql','CBAB00B40360D8942AD1E4EDBE0F0097F3F6FC9B','ARCHIVED','2024-09-23 22:48:10',0);
('2024_09_23_00_auth.sql','CBAB00B40360D8942AD1E4EDBE0F0097F3F6FC9B','ARCHIVED','2024-09-23 22:48:10',0),
('2024_09_26_00_auth.sql','E37C3997FD7851EA360774AC568912846C448272','RELEASED','2024-09-26 18:27:26',0);
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
UNLOCK TABLES;

Expand Down Expand Up @@ -3352,7 +3353,7 @@ SET character_set_client = @saved_cs_client;
/*!50001 SET character_set_results = utf8mb4 */;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 */
/*!50013 SQL SECURITY INVOKER */
/*!50001 VIEW `vw_log_history` AS select from_unixtime(min(`logs`.`time`)) AS `First Logged`,from_unixtime(max(`logs`.`time`)) AS `Last Logged`,count(0) AS `Occurrences`,`realmlist`.`name` AS `Realm`,`logs`.`type` AS `type`,`logs`.`level` AS `level`,`logs`.`string` AS `string` from (`logs` left join `realmlist` on((`logs`.`realm` = `realmlist`.`id`))) group by `logs`.`string`,`logs`.`type`,`logs`.`realm` */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
Expand All @@ -3366,11 +3367,11 @@ SET character_set_client = @saved_cs_client;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
/*!50001 SET @saved_col_connection = @@collation_connection */;
/*!50001 SET character_set_client = utf8mb3 */;
/*!50001 SET character_set_results = utf8mb3 */;
/*!50001 SET collation_connection = utf8mb3_general_ci */;
/*!50001 SET character_set_client = utf8mb4 */;
/*!50001 SET character_set_results = utf8mb4 */;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 */
/*!50013 SQL SECURITY INVOKER */
/*!50001 VIEW `vw_rbac` AS select `t1`.`linkedId` AS `Permission ID`,`t1`.`id` AS `Permission Group`,ifnull(`t2`.`secId`,'linked') AS `Security Level`,`t3`.`name` AS `Permission` from ((`rbac_linked_permissions` `t1` left join `rbac_default_permissions` `t2` on((`t1`.`id` = `t2`.`permissionId`))) left join `rbac_permissions` `t3` on((`t1`.`linkedId` = `t3`.`id`))) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
Expand Down
20 changes: 20 additions & 0 deletions sql/updates/auth/master/2024_09_26_00_auth.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

ALTER TABLE `realmlist` MODIFY `population` float NOT NULL DEFAULT '0';

SET NAMES 'utf8mb4' COLLATE 'utf8mb4_unicode_ci'; -- views do not have explicit charset/collation options but record whatever the connection settings were as their own (visible in mysqldump)

DROP VIEW IF EXISTS `vw_log_history`;
DROP VIEW IF EXISTS `vw_rbac`;

CREATE SQL SECURITY INVOKER VIEW `vw_log_history` AS (SELECT FROM_UNIXTIME(MIN(`logs`.`time`)) AS `First Logged` ,FROM_UNIXTIME(MAX(`logs`.`time`)) AS `Last Logged` ,COUNT(*) AS `Occurrences` ,`realmlist`.`name` AS `Realm` ,`logs`.`type` ,`logs`.`level` ,`logs`.`string` FROM `logs` LEFT JOIN realmlist ON `logs`.`realm` = `realmlist`.`id` GROUP BY `logs`.`string`, `logs`.`type`, `logs`.`realm`);

CREATE SQL SECURITY INVOKER VIEW `vw_rbac` AS
(
SELECT `t1`.`linkedId` AS `Permission ID`,
`t1`.`id` AS `Permission Group`,
IFNULL(`t2`.`secId`, 'linked') AS `Security Level`,
`t3`.`name` AS `Permission`
FROM `rbac_linked_permissions` `t1`
LEFT JOIN `rbac_default_permissions` `t2` ON `t1`.`id` = `t2`.`permissionId`
LEFT JOIN `rbac_permissions` `t3` ON `t1`.`linkedId` = `t3`.`id`
);
133 changes: 133 additions & 0 deletions sql/updates/hotfixes/master/2024_09_27_00_hotfixes.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
ALTER TABLE `achievement` MODIFY `UiOrder` smallint UNSIGNED NOT NULL DEFAULT 0 AFTER `Flags`;

ALTER TABLE `achievement_category` MODIFY `UiOrder` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `Parent`;

ALTER TABLE `area_trigger` MODIFY `ContinentID` smallint UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `artifact_power` MODIFY `Tier` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `Flags`;

ALTER TABLE `azerite_power_set_member` MODIFY `AzeritePowerSetID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;
ALTER TABLE `azerite_power_set_member` MODIFY `Tier` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `Class`;

ALTER TABLE `battle_pet_breed_quality` MODIFY `QualityEnum` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `StateMultiplier`;

ALTER TABLE `broadcast_text_duration` MODIFY `BroadcastTextID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `character_loadout` MODIFY `ItemContext` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `Purpose`;

ALTER TABLE `chr_customization_choice` MODIFY `ChrCustomizationOptionID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `chr_customization_option` MODIFY `ChrModelID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `Sex`;

ALTER TABLE `chr_model` MODIFY `DisplayID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `Sex`;

ALTER TABLE `chr_race_x_chr_model` MODIFY `ChrRacesID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `chr_specialization` MODIFY `ClassID` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `conditional_chr_model` MODIFY `ChrModelID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `difficulty` MODIFY `ItemContext` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `Flags`;

ALTER TABLE `dungeon_encounter` MODIFY `MapID` smallint UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `friendship_rep_reaction` MODIFY `FriendshipRepID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `Reaction`;

ALTER TABLE `gameobjects` MODIFY `OwnerID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `garr_building` MODIFY `BuildingType` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `GarrTypeID`;

ALTER TABLE `garr_mission` MODIFY `GarrMissionSetID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `PlayerConditionID`;

ALTER TABLE `garr_plot` MODIFY `PlotType` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `Name`;

ALTER TABLE `garr_talent_tree` MODIFY `FeatureSubtypeIndex` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `FeatureTypeIndex`;

ALTER TABLE `glyph_properties` MODIFY `GlyphType` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `SpellID`;

ALTER TABLE `item_bonus_list_group_entry` MODIFY `ItemBonusListGroupID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `item_bonus_tree_node` MODIFY `ItemContext` int NOT NULL DEFAULT 0 AFTER `ID`;
UPDATE `item_bonus_tree_node` SET `ItemContext` = `ItemContext` + 256 WHERE `ItemContext` < 0;
ALTER TABLE `item_bonus_tree_node` MODIFY `ItemContext` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `item_child_equipment` MODIFY `ParentItemID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `item_context_picker_entry` MODIFY `ItemCreationContext` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `item_currency_cost` MODIFY `ItemID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `item_modified_appearance` MODIFY `ItemID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `lfg_dungeons` MODIFY `Subtype` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `TypeID`;

ALTER TABLE `map_difficulty` MODIFY `ResetInterval` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `LockID`;

ALTER TABLE `maw_power` MODIFY `SpellID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `player_condition` MODIFY `PowerTypeComp` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `PowerType`;

ALTER TABLE `pvp_stat` MODIFY `MapID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `pvp_talent` MODIFY `SpecID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `pvp_tier` MODIFY `BracketID` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `NextTier`;

ALTER TABLE `skill_line_ability` MODIFY `SkillLine` smallint UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `skill_line_x_trait_tree` MODIFY `SkillLineID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `skill_race_class_info` MODIFY `SkillID` smallint UNSIGNED NOT NULL DEFAULT 0 AFTER `RaceMask`;

ALTER TABLE `spell_learn_spell` MODIFY `SpellID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `spell_reagents_currency` MODIFY `SpellID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `trait_cond` MODIFY `TraitTreeID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `CondType`;

ALTER TABLE `trait_currency_source` MODIFY `TraitCurrencyID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `trait_definition_effect_points` MODIFY `TraitDefinitionID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `trait_edge` MODIFY `LeftTraitNodeID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `VisualStyle`;

ALTER TABLE `trait_node` MODIFY `TraitTreeID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `trait_node_entry_x_trait_cond` MODIFY `TraitNodeEntryID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `TraitCondID`;

ALTER TABLE `trait_node_entry_x_trait_cost` MODIFY `TraitNodeEntryID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `trait_node_group` MODIFY `TraitTreeID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `trait_node_group_x_trait_cond` MODIFY `TraitNodeGroupID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `TraitCondID`;

ALTER TABLE `trait_node_group_x_trait_cost` MODIFY `TraitNodeGroupID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `trait_node_group_x_trait_node` MODIFY `TraitNodeGroupID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `trait_node_x_trait_cond` MODIFY `TraitNodeID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `TraitCondID`;

ALTER TABLE `trait_node_x_trait_cost` MODIFY `TraitNodeID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `trait_node_x_trait_node_entry` MODIFY `TraitNodeID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `trait_sub_tree` MODIFY `TraitTreeID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `UiTextureAtlasElementID`;

ALTER TABLE `trait_tree` MODIFY `TraitSystemID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `trait_tree_loadout` MODIFY `TraitTreeID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `trait_tree_loadout_entry` MODIFY `TraitTreeLoadoutID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `trait_tree_x_trait_currency` MODIFY `TraitTreeID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `Index`;

ALTER TABLE `transmog_set` MODIFY `ParentTransmogSetID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ItemNameDescriptionID`;

ALTER TABLE `ui_map` MODIFY `ParentUiMapID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;
ALTER TABLE `ui_map` MODIFY `System` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `Flags`;

ALTER TABLE `ui_map_assignment` MODIFY `UiMapID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `ui_map_link` MODIFY `ParentUiMapID` int UNSIGNED NOT NULL DEFAULT 0 AFTER `ID`;

ALTER TABLE `ui_splash_screen` MODIFY `ScreenType` tinyint UNSIGNED NOT NULL DEFAULT 0 AFTER `HordeQuestID`;
Loading

0 comments on commit 40d3926

Please sign in to comment.