/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\HRPTMC_constraint.sql **/

 EXEC P_ALTERPK 'PK_HRPTMC_PUBLISHMENU', 'T_HRPTMC_PUBLISHMENU', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_HRPTMC_PUBLISHMENU' AND KSQL_INDNAME = 'IDX_HRPTMC_PUBLISHMENU_FRPTID') CREATE INDEX IDX_HRPTMC_PUBLISHMENU_FRPTID ON T_HRPTMC_PUBLISHMENU ( FREPORTMANAGEID );

/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\HRPTMC_constraint.sql **/