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

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


 EXEC P_ALTERPK 'PK_HRPTC_DIMFIELD_L', 'T_HRPTC_DIMFIELD_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HRPTC_RPTDIMMAP', 'T_HRPTC_RPTDIMMAP', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRPTC_RPTDIMMAP') CREATE INDEX IDX_HRPTC_RPTDIMMAP ON T_HRPTC_RPTDIMMAP ( FRPTMANAGEID );



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