You cannot change a table’s primary key or unique constraint while other foreign key relationships are still in place. To change a table’s primary key or unique constraint, first delete all existing relationships for the table.
For more information, see Deleting a Relationship.