/**Begin D:\PDM_UPGRADE\PDM1\HRPTMC_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRPTMC_PREINDEXCOL', 'T_HRPTMC_PREINDEXCOL', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_HRPTMC_PREINDEXCOL_L', 'T_HRPTMC_PREINDEXCOL_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRPTMC_PREINDEXCOL_L') CREATE INDEX IDX_HRPTMC_PREINDEXCOL_L ON T_HRPTMC_PREINDEXCOL_L ( FENTRYID ,FLOCALEID );



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