/**Begin D:\pdm\PDM_UPGRADE\PDM1\HRPTMC_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRPTMC_RPTDISPSCM', 'T_HRPTMC_RPTDISPSCM', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_HRPTMC_RPTDISPSCMROW', 'T_HRPTMC_RPTDISPSCMROW', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRPTMC_RPTDISPSCMROW') CREATE INDEX IDX_HRPTMC_RPTDISPSCMROW ON T_HRPTMC_RPTDISPSCMROW ( FRPTDISPSCMID );


 EXEC P_ALTERPK 'PK_HRPTMC_RPTDISPSCMCOL', 'T_HRPTMC_RPTDISPSCMCOL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRPTMC_RPTDISPSCMCOL') CREATE INDEX IDX_HRPTMC_RPTDISPSCMCOL ON T_HRPTMC_RPTDISPSCMCOL ( FRPTDISPSCMID );


 EXEC P_ALTERPK 'PK_HRPTMC_RPTDISPSCMIDX', 'T_HRPTMC_RPTDISPSCMIDX', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRPTMC_RPTDISPSCMIDX') CREATE INDEX IDX_HRPTMC_RPTDISPSCMIDX ON T_HRPTMC_RPTDISPSCMIDX ( FRPTDISPSCMID );

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