From 60400d25f5fff2dabd4aa74bbdbc0d2370360a35 Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 27 Jun 2025 15:29:30 +0200 Subject: Core/Players: Implemented PlayerDataElementAccount, PlayerDataElementCharacter, PlayerDataFlagAccount and PlayerDataFlagCharacter --- sql/updates/auth/master/2025_06_27_00_auth.sql | 22 ++++++++++ .../characters/master/2025_06_27_00_characters.sql | 22 ++++++++++ .../hotfixes/master/2025_06_27_00_hotfixes.sql | 47 ++++++++++++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 sql/updates/auth/master/2025_06_27_00_auth.sql create mode 100644 sql/updates/characters/master/2025_06_27_00_characters.sql create mode 100644 sql/updates/hotfixes/master/2025_06_27_00_hotfixes.sql (limited to 'sql/updates') diff --git a/sql/updates/auth/master/2025_06_27_00_auth.sql b/sql/updates/auth/master/2025_06_27_00_auth.sql new file mode 100644 index 00000000000..d7ace8563f1 --- /dev/null +++ b/sql/updates/auth/master/2025_06_27_00_auth.sql @@ -0,0 +1,22 @@ +-- +-- Table structure for table `battlenet_account_player_data_element` +-- +DROP TABLE IF EXISTS `battlenet_account_player_data_element`; +CREATE TABLE `battlenet_account_player_data_element` ( + `battlenetAccountId` int unsigned NOT NULL, + `playerDataElementAccountId` int unsigned NOT NULL, + `floatValue` float DEFAULT NULL, + `int64Value` bigint DEFAULT NULL, + PRIMARY KEY (`battlenetAccountId`,`playerDataElementAccountId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Table structure for table `battlenet_account_player_data_flag` +-- +DROP TABLE IF EXISTS `battlenet_account_player_data_flag`; +CREATE TABLE `battlenet_account_player_data_flag` ( + `battlenetAccountId` int unsigned NOT NULL, + `storageIndex` int unsigned NOT NULL, + `mask` bigint unsigned NOT NULL, + PRIMARY KEY (`battlenetAccountId`,`storageIndex`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; diff --git a/sql/updates/characters/master/2025_06_27_00_characters.sql b/sql/updates/characters/master/2025_06_27_00_characters.sql new file mode 100644 index 00000000000..4cdc504d89c --- /dev/null +++ b/sql/updates/characters/master/2025_06_27_00_characters.sql @@ -0,0 +1,22 @@ +-- +-- Table structure for table `character_player_data_element` +-- +DROP TABLE IF EXISTS `character_player_data_element`; +CREATE TABLE `character_player_data_element` ( + `characterGuid` bigint unsigned NOT NULL, + `playerDataElementCharacterId` int unsigned NOT NULL, + `floatValue` float DEFAULT NULL, + `int64Value` bigint DEFAULT NULL, + PRIMARY KEY (`characterGuid`,`playerDataElementCharacterId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Table structure for table `character_player_data_flag` +-- +DROP TABLE IF EXISTS `character_player_data_flag`; +CREATE TABLE `character_player_data_flag` ( + `characterGuid` bigint unsigned NOT NULL, + `storageIndex` int unsigned NOT NULL, + `mask` bigint unsigned NOT NULL, + PRIMARY KEY (`characterGuid`,`storageIndex`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; diff --git a/sql/updates/hotfixes/master/2025_06_27_00_hotfixes.sql b/sql/updates/hotfixes/master/2025_06_27_00_hotfixes.sql new file mode 100644 index 00000000000..debe7a8a4ea --- /dev/null +++ b/sql/updates/hotfixes/master/2025_06_27_00_hotfixes.sql @@ -0,0 +1,47 @@ +-- +-- Table structure for table `player_data_element_account` +-- +DROP TABLE IF EXISTS `player_data_element_account`; +CREATE TABLE `player_data_element_account` ( + `ID` int unsigned NOT NULL DEFAULT '0', + `StorageIndex` int NOT NULL DEFAULT '0', + `Type` int NOT NULL DEFAULT '0', + `VerifiedBuild` int NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`,`VerifiedBuild`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Table structure for table `player_data_element_character` +-- +DROP TABLE IF EXISTS `player_data_element_character`; +CREATE TABLE `player_data_element_character` ( + `ID` int unsigned NOT NULL DEFAULT '0', + `StorageIndex` int NOT NULL DEFAULT '0', + `Type` int NOT NULL DEFAULT '0', + `VerifiedBuild` int NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`,`VerifiedBuild`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Table structure for table `player_data_flag_account` +-- +DROP TABLE IF EXISTS `player_data_flag_account`; +CREATE TABLE `player_data_flag_account` ( + `ID` int unsigned NOT NULL DEFAULT '0', + `StorageIndex` int NOT NULL DEFAULT '0', + `Unknown1107` int NOT NULL DEFAULT '0', + `VerifiedBuild` int NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`,`VerifiedBuild`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Table structure for table `player_data_flag_character` +-- +DROP TABLE IF EXISTS `player_data_flag_character`; +CREATE TABLE `player_data_flag_character` ( + `ID` int unsigned NOT NULL DEFAULT '0', + `StorageIndex` int NOT NULL DEFAULT '0', + `Unknown1107` int NOT NULL DEFAULT '0', + `VerifiedBuild` int NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`,`VerifiedBuild`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- cgit v1.2.3