Hi Javier,
it seems, that your table definition contains a primary key definition.
CREATE TABLE ... PRIMARY KEY ( column1 , column2 ... )
If it does, you need an UNIQUE INDEX containing exactly those columns.
If there is a new column added to the primary key, you must
1) change the DDL of the create table ... PRIMARY KEY ( column1,column2,column3 ) AND
2) create a unique index containing exactly those columns