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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRPTMC_DIMMAP') CREATE INDEX IDX_HRPTMC_DIMMAP ON T_HRPTMC_DIMMAP ( FREPORTID ,FPREINDEXID );


 EXEC P_ALTERPK 'PK_HRPTMC_DIMMAPENTRY', 'T_HRPTMC_DIMMAPENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_HRPTMC_REPORTPREINDEX', 'T_HRPTMC_REPORTPREINDEX', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRPTMC_REPORTPREINDEX') CREATE INDEX IDX_HRPTMC_REPORTPREINDEX ON T_HRPTMC_REPORTPREINDEX ( FREPORTID ,FPREINDEXID );



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