/**Begin C:\Users\rd_jin_gu\Documents\work\PDM_UPGRADE\PDM1\HRPTMC_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRPTMC_DATAEXTRACTLOG', 'T_HRPTMC_DATAEXTRACTLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRPTMC_DATAEXTRACTLOG_1') CREATE INDEX IDX_HRPTMC_DATAEXTRACTLOG_1 ON T_HRPTMC_DATAEXTRACTLOG ( FANOBJID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRPTMC_DATAEXTRACTLOG_2') CREATE INDEX IDX_HRPTMC_DATAEXTRACTLOG_2 ON T_HRPTMC_DATAEXTRACTLOG ( FREPORTID );



/**End C:\Users\rd_jin_gu\Documents\work\PDM_UPGRADE\PDM1\HRPTMC_constraint.sql **/
