/**Begin D:\pdm\PDM_UPGRADE\pdm_new\RIM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_RIM_CHECK_LOG', 'T_RIM_CHECK_LOG', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_CHECK_LOG') CREATE  CLUSTERED INDEX IDX_RIM_CHECK_LOG ON T_RIM_CHECK_LOG ( FINVOICE_CODE ,FINVOICE_NO );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_CHECK_LOG_TIME') CREATE INDEX IDX_RIM_CHECK_LOG_TIME ON T_RIM_CHECK_LOG ( FCREATE_TIME ,FERRCODE );



/**End D:\pdm\PDM_UPGRADE\pdm_new\RIM_constraint.sql **/
