[ticket/12710] Can not use upper in oracles where claus

PHPBB3-12710
[ticket/12710] Remove table_name from index_name before deleting and recreating them

PHPBB3-12710