aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-08-23 20:03:12 +0200
committerShauren <shauren.trinity@gmail.com>2024-08-23 20:03:12 +0200
commitffebe1a8321e8803b2be1f37a6cc72668d135fd8 (patch)
tree85fb29f675fdc085b73acb2d6fc8e526003e4a0d
parentff4b0dd815fb6d0e94aa10f803e1c3b7a73bea62 (diff)
Core: Set The War Within as current expansion
-rw-r--r--sql/base/auth_database.sql5
-rw-r--r--sql/updates/auth/master/2024_08_23_01_auth.sql3
-rw-r--r--src/server/game/Miscellaneous/SharedDefines.h4
3 files changed, 8 insertions, 4 deletions
diff --git a/sql/base/auth_database.sql b/sql/base/auth_database.sql
index 0181c6dce47..261d314eb2b 100644
--- a/sql/base/auth_database.sql
+++ b/sql/base/auth_database.sql
@@ -40,7 +40,7 @@ CREATE TABLE `account` (
`lock_country` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '00',
`last_login` timestamp NULL DEFAULT NULL,
`online` tinyint unsigned NOT NULL DEFAULT '0',
- `expansion` tinyint unsigned NOT NULL DEFAULT '9',
+ `expansion` tinyint unsigned NOT NULL DEFAULT '10',
`mutetime` bigint NOT NULL DEFAULT '0',
`mutereason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`muteby` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
@@ -2877,7 +2877,8 @@ INSERT INTO `updates` VALUES
('2024_08_18_00_auth.sql','5C1D0A3FE0245F4030FE446288AE533556EC6C9E','RELEASED','2024-08-17 23:01:21',0),
('2024_08_21_00_auth.sql','6F2844107F0501E7631C8196CC04E75853381319','RELEASED','2024-08-21 15:25:46',0),
('2024_08_22_00_auth.sql','D5466F5E9D1475323ED90553361D7F7B4CF83BF7','RELEASED','2024-08-22 23:35:36',0),
-('2024_08_23_00_auth.sql','A591DA576EAEA3F48AB9E8269A2E4071B2C3C930','RELEASED','2024-08-23 17:35:52',0);
+('2024_08_23_00_auth.sql','A591DA576EAEA3F48AB9E8269A2E4071B2C3C930','RELEASED','2024-08-23 17:35:52',0),
+('2024_08_23_01_auth.sql','1ABD54E76B2D6712BF3DE06DD60A18C38BCF9CF1','RELEASED','2024-08-23 19:59:36',0);
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
UNLOCK TABLES;
diff --git a/sql/updates/auth/master/2024_08_23_01_auth.sql b/sql/updates/auth/master/2024_08_23_01_auth.sql
new file mode 100644
index 00000000000..da703936511
--- /dev/null
+++ b/sql/updates/auth/master/2024_08_23_01_auth.sql
@@ -0,0 +1,3 @@
+ALTER TABLE `account` MODIFY `expansion` tinyint unsigned NOT NULL DEFAULT 10;
+
+UPDATE `account` SET `expansion`=10 WHERE `expansion`=9;
diff --git a/src/server/game/Miscellaneous/SharedDefines.h b/src/server/game/Miscellaneous/SharedDefines.h
index 6a02a959704..703f57d2a53 100644
--- a/src/server/game/Miscellaneous/SharedDefines.h
+++ b/src/server/game/Miscellaneous/SharedDefines.h
@@ -97,13 +97,13 @@ enum Expansions
EXPANSION_BATTLE_FOR_AZEROTH = 7,
EXPANSION_SHADOWLANDS = 8,
EXPANSION_DRAGONFLIGHT = 9,
- MAX_EXPANSIONS,
EXPANSION_THE_WAR_WITHIN = 10,
+ MAX_EXPANSIONS,
MAX_ACCOUNT_EXPANSIONS
};
-#define CURRENT_EXPANSION EXPANSION_DRAGONFLIGHT
+#define CURRENT_EXPANSION EXPANSION_THE_WAR_WITHIN
constexpr uint32 GetMaxLevelForExpansion(uint32 expansion)
{