UPDATE SITE S, SITE T SET S.KEY_TEMPLATE = T.ID_INTERNAL WHERE S.OJB_CONCRETE_CLASS = T.SITE_TYPE AND T.OJB_CONCRETE_CLASS = 'net.sourceforge.fenixedu.domain.SiteTemplate';
