/**Begin D:\pdm\PDM_UPGRADE\PDM1\HRPTMC_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRPTMC_ROWALGORITHM', 'T_HRPTMC_ROWALGORITHM', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_HRPTMC_ALGORITHMCOL', 'T_HRPTMC_ALGORITHMCOL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRPTMC_ALGORITHMCOL') CREATE INDEX IDX_HRPTMC_ALGORITHMCOL ON T_HRPTMC_ALGORITHMCOL ( FRPTCONFIGID );


 EXEC P_ALTERPK 'PK_HRPTMC_COLALGORITHMTYPE', 'T_HRPTMC_COLALGORITHMTYPE', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_HRPTMC_ALGORITHMCOL_L', 'T_HRPTMC_ALGORITHMCOL_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRPTMC_ALGORITHMCOL_L') CREATE INDEX IDX_HRPTMC_ALGORITHMCOL_L ON T_HRPTMC_ALGORITHMCOL_L ( FID ,FLOCALEID );



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