mysql – How to update the same register in a table

Good evening i have a table with compuesta primary key

create table data
(
id int,
primary key (id)
)

drop table Datos_estatus;

create the Datos_estatus table
(
id_poliza int,
int state,
primary key (id_poliza, state)

)

in the Datos_estatus table

Data status
id_poliza estatus
1 2
1 5
1 3
2 4
3 6

I need to change the status = 8 at all id with the value = 1 in the table Datos_estatus

I was trying with internal update and join but did not work for me.
Thank you.