Fixed an edge case where a user could enter an invalid unique_index
if it was the name of the unique column.