                     Group By mtt.USER_ID, mtt.pf_surrogateKey) s1
     where s1.c1 = 3;
 
---MSGCNTR-360
---Hibernate could have missed this index, if this fails, then the index may already be in the table
+-- MSGCNTR-360
+-- Hibernate could have missed this index, if this fails, then the index may already be in the table
 CREATE INDEX user_type_context_idx ON MFR_PVT_MSG_USR_T ( USER_ID(36), TYPE_UUID(36), CONTEXT_ID(36), READ_STATUS);
 
 

-- SAK-19080 / GRBK-736
alter table GB_GRADE_RECORD_T add USER_ENTERED_GRADE varchar(127);


--MSGCNTR-309
--Start and End dates on Forums and Topics

alter table MFR_AREA_T add (AVAILABILITY_RESTRICTED bit);

alter table MFR_TOPIC_T add (CLOSE_DATE datetime null);


-- MSGCNTR-355
insert into MFR_TOPIC_T (UUID, MODERATED, AUTO_MARK_THREADS_READ, SORT_INDEX, MUTABLE, TOPIC_DTYPE, VERSION, CREATED, CREATED_BY, MODIFIED, MODIFIED_BY, TITLE, SHORT_DESCRIPTION, EXTENDED_DESCRIPTION, TYPE_UUID, pf_surrogateKey, USER_ID)

    select UUID, MODERATED, AUTO_MARK_THREADS_READ, 3 as SORT_INDEX, 0 as MUTABLE, TOPIC_DTYPE, VERSION, CREATED, CREATED_BY, MODIFIED, MODIFIED_BY, TITLE, SHORT_DESCRIPTION, EXTENDED_DESCRIPTION, TYPE_UUID, pf_surrogateKey, USER_ID from (
