another index change

This commit is contained in:
Michael Foster 2013-09-02 11:41:17 +10:00
parent 9494e0185c
commit af357b5661
2 changed files with 6 additions and 2 deletions

View file

@ -101,7 +101,7 @@ CREATE TABLE IF NOT EXISTS `ip_notes` (
`time` int(11) NOT NULL,
`body` text NOT NULL,
UNIQUE KEY `id` (`id`),
KEY `ip` (`ip`)
KEY `ip_lookup` (`ip`, `time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------