[ticket/12873] Test the correct identifier in \phpbb\db\tools

https://tracker.phpbb.com/browse/PHPBB3-12873
https://tracker.phpbb.com/browse/PHPBB3-12770

PHPBB3-12770
PHPBB3-12873
(The db index that is, not the whole search index.)