diff --git a/jenz_ban_detector/mysql/create_db.sql b/jenz_ban_detector/mysql/create_db.sql index c21a7d56..4291a4c3 100644 --- a/jenz_ban_detector/mysql/create_db.sql +++ b/jenz_ban_detector/mysql/create_db.sql @@ -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; + +