Fixed #23859 -- Fixed duplicate index error on Oracle

Ticket: https://code.djangoproject.com/ticket/23859#comment:6

Refers to regression introduced in #3563