select distinct CONSTRAINT_NAME from information_schema.TABLE_CONSTRAINTS where table_name = 'TableName' and constraint_type = 'UNIQUE';
ALTER TABLE users ADD UNIQUE (username, delete_date, ...);