__IF_EXISTS__
SELECT 1
  FROM CI_UT_INSTL_DTL
WHERE SCRIPT_FILE_NAME = 'FW45001_POSTDATA_UGBUPD-10684.SQL'
   AND END_DTTM IS NOT NULL
/
__THEN__
__EXIT__
__ENDIF__


UPDATE CI_MD_CONST SET ENABLE_RI_SW = 'N' WHERE REF_CONST_ID = 'CI_CXC062P0' AND ENABLE_RI_SW <> 'N' AND TBL_NAME IN (SELECT TBL_NAME FROM CI_MD_TBL WHERE CHAR_ENTITY_FLG > ' ')
/

UPDATE CI_MD_CONST SET ENABLE_RI_SW = 'N' WHERE REF_CONST_ID = 'CI_CXC063P0' AND ENABLE_RI_SW <> 'N' AND TBL_NAME IN (SELECT TBL_NAME FROM CI_MD_TBL WHERE CHAR_ENTITY_FLG > ' ')
/