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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRPTMC_USERDISPROW') CREATE INDEX IDX_HRPTMC_USERDISPROW ON T_HRPTMC_USERDISPROW ( FROWFIELDID );


 EXEC P_ALTERPK 'PK_HRPTMC_USERDISPCOL', 'T_HRPTMC_USERDISPCOL', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRPTMC_USERDISPCOL') CREATE INDEX IDX_HRPTMC_USERDISPCOL ON T_HRPTMC_USERDISPCOL ( FCOLFIELDID );


 EXEC P_ALTERPK 'PK_HRPTMC_USERDISPINX', 'T_HRPTMC_USERDISPINX', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRPTMC_USERDISPINDX') CREATE INDEX IDX_HRPTMC_USERDISPINDX ON T_HRPTMC_USERDISPINX ( FINDEXFIELDID );


 EXEC P_ALTERPK 'PK_HRPTMC_USERDISPROW_L', 'T_HRPTMC_USERDISPROW_L', 'FPKID', '1';

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



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