/**Begin D:\tool\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm1\RIM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_RIM_IMAGE_NOTIFY_LOG', 'T_RIM_IMAGE_NOTIFY_LOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_NOTIFY_LOG_EXPENSE_ID_TYPE') CREATE INDEX IDX_NOTIFY_LOG_EXPENSE_ID_TYPE ON T_RIM_IMAGE_NOTIFY_LOG ( FEXPENSE_ID ,FEXPENSE_TYPE );


 EXEC P_ALTERPK 'PK_T_RIM_NOTIFY_LOG_DETAIL', 'T_RIM_NOTIFY_LOG_DETAIL', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_NOTIFY_LOG_DETAIL_ID') CREATE INDEX IDX_RIM_NOTIFY_LOG_DETAIL_ID ON T_RIM_NOTIFY_LOG_DETAIL ( FID );



/**End D:\tool\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm1\RIM_constraint.sql **/
