From e58a860789e41d650bba6d05fb71674175e2d75d Mon Sep 17 00:00:00 2001
From: Ingo Fabbri <inf@mmcagentur.at>
Date: Thu, 17 Aug 2023 18:51:18 +0200
Subject: [PATCH] [TASK] Add indexes for table sys_log

This commit adds two new keys to table sys_log:

- channel
- level

Resolves: #101707
Releases: main, 12.4
Change-Id: Iddc61daf268573c658a068a655b97c482e438c31
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80660
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci <typo3@b13.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
---
 typo3/sysext/core/ext_tables.sql | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/typo3/sysext/core/ext_tables.sql b/typo3/sysext/core/ext_tables.sql
index 96282c3c7c5d..092115b6c557 100644
--- a/typo3/sysext/core/ext_tables.sql
+++ b/typo3/sysext/core/ext_tables.sql
@@ -379,7 +379,9 @@ CREATE TABLE sys_log (
 	KEY user_auth (type,action,tstamp),
 	KEY request (request_id),
 	KEY combined_1 (tstamp, type, userid),
-	KEY errorcount (tstamp,error)
+	KEY errorcount (tstamp,error),
+	KEY channel (channel),
+	KEY level (level)
 ) ENGINE=InnoDB;
 
 #
-- 
GitLab