added indexing on IP

This commit is contained in:
jenz 2024-03-30 21:16:28 +01:00
parent 61617df2f5
commit 74accb4b9d

View File

@ -1,3 +1,4 @@
-- ban_detector.ban_detector definition
CREATE TABLE `ban_detector` (
`fingerprint` varchar(512) DEFAULT NULL,
`ip` varchar(64) NOT NULL,
@ -7,5 +8,8 @@ CREATE TABLE `ban_detector` (
`modified_on` datetime DEFAULT NULL,
`last_connect` datetime DEFAULT NULL,
`disable_html_motd` int(11) DEFAULT 0,
PRIMARY KEY (`steamid`)
PRIMARY KEY (`steamid`),
KEY `ip_index` (`ip`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;