Add guard against having an index twice in a table definition