aboutsummaryrefslogtreecommitdiff
path: root/sql/updates
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-03-04 13:52:20 +0100
committerShauren <shauren.trinity@gmail.com>2025-03-04 13:52:20 +0100
commit29e032707686b18bbcce7029e8dd2eaa6606f6d4 (patch)
treec12b9ee11cf55e9c2dce2723e801c2267f93634c /sql/updates
parent75c8c477d8b1ff8ae45c0954794a0f053af88fa5 (diff)
Core/Players: Implement warband scene collection
Diffstat (limited to 'sql/updates')
-rw-r--r--sql/updates/auth/master/2025_03_04_00_auth.sql12
-rw-r--r--sql/updates/hotfixes/master/2025_03_04_00_hotfixes.sql52
2 files changed, 64 insertions, 0 deletions
diff --git a/sql/updates/auth/master/2025_03_04_00_auth.sql b/sql/updates/auth/master/2025_03_04_00_auth.sql
new file mode 100644
index 00000000000..28cb2180db8
--- /dev/null
+++ b/sql/updates/auth/master/2025_03_04_00_auth.sql
@@ -0,0 +1,12 @@
+--
+-- Table structure for table `battlenet_account_warband_scenes`
+--
+DROP TABLE IF EXISTS `battlenet_account_warband_scenes`;
+CREATE TABLE `battlenet_account_warband_scenes` (
+ `battlenetAccountId` int unsigned NOT NULL,
+ `warbandSceneId` int NOT NULL DEFAULT '0',
+ `isFavorite` tinyint(1) DEFAULT '0',
+ `hasFanfare` tinyint(1) DEFAULT '0',
+ PRIMARY KEY (`battlenetAccountId`,`warbandSceneId`),
+ CONSTRAINT `fk_battlenet_account_warband_scenes__accountId` FOREIGN KEY (`battlenetAccountId`) REFERENCES `battlenet_accounts` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
diff --git a/sql/updates/hotfixes/master/2025_03_04_00_hotfixes.sql b/sql/updates/hotfixes/master/2025_03_04_00_hotfixes.sql
new file mode 100644
index 00000000000..5c1157ad589
--- /dev/null
+++ b/sql/updates/hotfixes/master/2025_03_04_00_hotfixes.sql
@@ -0,0 +1,52 @@
+--
+-- Table structure for table `warband_scene`
+--
+DROP TABLE IF EXISTS `warband_scene`;
+CREATE TABLE `warband_scene` (
+ `Name` text,
+ `Description` text,
+ `Source` text,
+ `PositionX` float NOT NULL DEFAULT '0',
+ `PositionY` float NOT NULL DEFAULT '0',
+ `PositionZ` float NOT NULL DEFAULT '0',
+ `LookAtX` float NOT NULL DEFAULT '0',
+ `LookAtY` float NOT NULL DEFAULT '0',
+ `LookAtZ` float NOT NULL DEFAULT '0',
+ `ID` int unsigned NOT NULL DEFAULT '0',
+ `MapID` int unsigned NOT NULL DEFAULT '0',
+ `Fov` float NOT NULL DEFAULT '0',
+ `TimeOfDay` int NOT NULL DEFAULT '0',
+ `Flags` int NOT NULL DEFAULT '0',
+ `SoundAmbienceID` int NOT NULL DEFAULT '0',
+ `Quality` tinyint NOT NULL DEFAULT '0',
+ `TextureKit` int NOT NULL DEFAULT '0',
+ `DefaultScenePriority` int NOT NULL DEFAULT '0',
+ `SourceType` tinyint 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 `warband_scene_locale`
+--
+DROP TABLE IF EXISTS `warband_scene_locale`;
+CREATE TABLE `warband_scene_locale` (
+ `ID` int unsigned NOT NULL DEFAULT '0',
+ `locale` varchar(4) NOT NULL,
+ `Name_lang` text,
+ `Description_lang` text,
+ `Source_lang` text,
+ `VerifiedBuild` int NOT NULL DEFAULT '0',
+ PRIMARY KEY (`ID`,`locale`,`VerifiedBuild`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
+/*!50500 PARTITION BY LIST COLUMNS(locale)
+(PARTITION deDE VALUES IN ('deDE') ENGINE = InnoDB,
+ PARTITION esES VALUES IN ('esES') ENGINE = InnoDB,
+ PARTITION esMX VALUES IN ('esMX') ENGINE = InnoDB,
+ PARTITION frFR VALUES IN ('frFR') ENGINE = InnoDB,
+ PARTITION itIT VALUES IN ('itIT') ENGINE = InnoDB,
+ PARTITION koKR VALUES IN ('koKR') ENGINE = InnoDB,
+ PARTITION ptBR VALUES IN ('ptBR') ENGINE = InnoDB,
+ PARTITION ruRU VALUES IN ('ruRU') ENGINE = InnoDB,
+ PARTITION zhCN VALUES IN ('zhCN') ENGINE = InnoDB,
+ PARTITION zhTW VALUES IN ('zhTW') ENGINE = InnoDB) */;