Add a unique constraint on sample names.