/**Begin D:\PDM_UPGRADE\PDM1\HRPTMC_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRPTMC_DATACOMPLOG', 'T_HRPTMC_DATACOMPLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_HRPTMC_DATACOMPLOG' AND KSQL_INDNAME = 'IDX_HRPTMC_DATACOMPLOG') CREATE INDEX IDX_HRPTMC_DATACOMPLOG ON T_HRPTMC_DATACOMPLOG ( FDATAA ,FDATAB );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_HRPTMC_DATACOMPLOG' AND KSQL_INDNAME = 'IDX_HRPTMC_DATACOMPLOG_RPT') CREATE INDEX IDX_HRPTMC_DATACOMPLOG_RPT ON T_HRPTMC_DATACOMPLOG ( FREPORTID );



/**End D:\PDM_UPGRADE\PDM1\HRPTMC_constraint.sql **/
