/**Begin D:\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm1\RIM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_RIM_SELECT_LOG', 'T_RIM_SELECT_LOG', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_SELECT_LOG_BATCHNO') CREATE  CLUSTERED INDEX IDX_RIM_SELECT_LOG_BATCHNO ON T_RIM_SELECT_LOG ( FBATCH_NO );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_SELECT_LOG_TAXNO') CREATE INDEX IDX_RIM_SELECT_LOG_TAXNO ON T_RIM_SELECT_LOG ( FTAX_NO );


 EXEC P_ALTERPK 'PK_RIM_HIS_SYNC_CONFIG', 'T_RIM_HIS_SYNC_CONFIG', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_HIS_SYNC_CONFIG') CREATE  CLUSTERED INDEX IDX_RIM_HIS_SYNC_CONFIG ON T_RIM_HIS_SYNC_CONFIG ( FCLIENTID );



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