Added a unique constraint.