MySQL Set Field уникальное
ALTER TABLE mytbl ADD UNIQUE (columnName);
Easy Eland
ALTER TABLE mytbl ADD UNIQUE (columnName);
ALTER TABLE contacts
ADD CONSTRAINT contacts_unique UNIQUE (reference_number);