Adds an index on erro_connection_log for yogbot review command (#12065)

* Adds an index on erro_connection_log for yogbot review command

* r

* Comma

* Wrong comma

* Update database_changelog.txt
This commit is contained in:
alexkar598
2021-08-25 19:10:19 -04:00
committed by GitHub
parent dd12feeedb
commit 266cc701e3
4 changed files with 16 additions and 6 deletions

View File

@@ -117,7 +117,8 @@ CREATE TABLE IF NOT EXISTS `connection_log` (
`ckey` varchar(45) DEFAULT NULL,
`ip` int(10) unsigned NOT NULL,
`computerid` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`)
PRIMARY KEY (`id`),
KEY `idx_review` (`ckey`, `computerid`, `ip`)
) ENGINE=InnoDB AUTO_INCREMENT=4192042 DEFAULT CHARSET=utf8;