From 22bad09c01c6f17eeb420076904fd5e88ad4de36 Mon Sep 17 00:00:00 2001
From: Treeston <treeston.mmoc@gmail.com>
Date: Mon, 3 Aug 2020 18:53:00 +0200
Subject: Core/DB: Split `accounts`.`session_key` into `session_key_auth`
 (3.3.5) and `session_key_bnet` (master), so the branches will no longer break
 each other's realm switching.

(cherry picked from commit 38de6d330711f0439d311a3c493cc82eaf9d09db)
---
 sql/base/auth_database.sql | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'sql/base/auth_database.sql')

diff --git a/sql/base/auth_database.sql b/sql/base/auth_database.sql
index cf23c932777..7ccc1341aea 100644
--- a/sql/base/auth_database.sql
+++ b/sql/base/auth_database.sql
@@ -27,7 +27,8 @@ CREATE TABLE `account` (
   `username` varchar(32) NOT NULL DEFAULT '',
   `salt` BINARY(32),
   `verifier` BINARY(32),
-  `session_key` VARBINARY(64) DEFAULT NULL,
+  `session_key_auth` BINARY(40) DEFAULT NULL,
+  `session_key_bnet` VARBINARY(64) DEFAULT NULL,
   `sha_pass_hash` varchar(40) NOT NULL DEFAULT '',
   `v` varchar(64) NOT NULL DEFAULT 'dummy value, use `verifier` instead',
   `s` varchar(64) NOT NULL DEFAULT 'dummy value, use `salt` instead',
@@ -2366,8 +2367,9 @@ INSERT INTO `updates` VALUES
 ('2020_07_23_00_auth.sql','5F47E1CEECA9F837C85C2DAC7ECD47AED321F502','RELEASED','2020-07-23 19:54:42',0),
 ('2020_07_24_00_auth.sql','06598162E9C84DDF8AA1F83D0410D056C3F7F69E','RELEASED','2020-07-24 00:44:34',0),
 ('2020_07_25_00_auth.sql','BE376B619ECB6FE827270D5022F311E20AD6E177','RELEASED','2020-07-25 00:00:49',0),
-('2020_08_02_00_auth.sql','B0290F6558C59262D9DDD8071060A8803DD56930','ARCHIVED','2020-08-02 00:00:00',0),
-('2020_08_03_00_auth.sql','492CA77C0FAEEEF3E0492121B3A92689373ECFA3','RELEASED','2020-08-03 09:24:47',0);
+('2020_08_02_00_auth.sql','B0290F6558C59262D9DDD8071060A8803DD56930','RELEASED','2020-08-02 00:00:00',0),
+('2020_08_03_00_auth.sql','492CA77C0FAEEEF3E0492121B3A92689373ECFA3','RELEASED','2020-08-03 09:24:47',0),
+('2020_08_03_01_auth.sql','EC1063396CA20A2303D83238470D41EF4439EC72','RELEASED','2020-08-03 00:00:01',0);
 /*!40000 ALTER TABLE `updates` ENABLE KEYS */;
 UNLOCK TABLES;
 
-- 
cgit v1.2.3

