ALTER TABLE dimension_template  DROP INDEX templateName ON dimension_template;

ALTER TABLE dimension_template ADD UNIQUE INDEX uk_tenantid_templatename (tenantId, templateName);