how to alter mysql db column to add unique constraint after table craetion code example
Example: mysql alter table set column unique
ALTER TABLE contacts
ADD CONSTRAINT contacts_unique UNIQUE (reference_number);
ALTER TABLE contacts
ADD CONSTRAINT contacts_unique UNIQUE (reference_number);