ALTER TABLE cmn_application_preference ADD CONSTRAINT preference_name_unique UNIQUE (preference_name);