I have this error:
SQL Error [23505]: ERROR: duplicate key value violates unique constraint "name_pkey" Detail: Key (status_id, type)=(0, 1) already exists.
When I execute this update script:
update schema.table_name
set type = '1'
where status_id in ('AT', '0', '1',);