aboutsummaryrefslogtreecommitdiff
path: root/sql/updates
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-06-27 15:29:30 +0200
committerShauren <shauren.trinity@gmail.com>2025-06-27 15:29:30 +0200
commit60400d25f5fff2dabd4aa74bbdbc0d2370360a35 (patch)
tree54f2ae7ecfdbe1387d6d6e39a4168a9385b1f230 /sql/updates
parente0f3291eab271cb7dc5f39abfc7e2a4744be6ee0 (diff)
Core/Players: Implemented PlayerDataElementAccount, PlayerDataElementCharacter, PlayerDataFlagAccount and PlayerDataFlagCharacter
Diffstat (limited to 'sql/updates')
-rw-r--r--sql/updates/auth/master/2025_06_27_00_auth.sql22
-rw-r--r--sql/updates/characters/master/2025_06_27_00_characters.sql22
-rw-r--r--sql/updates/hotfixes/master/2025_06_27_00_hotfixes.sql47
3 files changed, 91 insertions, 0 deletions
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;