/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\HPDI_constraint.sql **/
 EXEC P_ALTERPK 'PK_HPDI_MSGRECEIVE', 'T_HPDI_MSGRECEIVE', 'FID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HPDI_MSGRECEIVE_NUMBER') CREATE INDEX IDX_HPDI_MSGRECEIVE_NUMBER ON T_HPDI_MSGRECEIVE ( FNUMBER );

 EXEC P_ALTERPK 'PK_HPDI_MSGRECEIVE_L', 'T_HPDI_MSGRECEIVE_L', 'FPKID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HPDI_MSGRECEIVE_L') CREATE INDEX IDX_HPDI_MSGRECEIVE_L ON T_HPDI_MSGRECEIVE_L ( FID ,FLOCALEID );
/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\HPDI_constraint.sql **/
