Fix duplicate name of unique
Primary key must be on id column when there is one