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

 EXEC P_ALTERPK 'PK_HPDI_BUSIEVENTREL', 'T_HPDI_BUSIEVENTREL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HPDI_BUSIEVENTREL') CREATE INDEX IDX_HPDI_BUSIEVENTREL ON T_HPDI_BUSIEVENTREL ( FEVENTID );


 EXEC P_ALTERPK 'PK_HPDI_EVENT', 'T_HPDI_EVENT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HPDI_EVENT') CREATE INDEX IDX_HPDI_EVENT ON T_HPDI_EVENT ( FOPERATEDATE );


 EXEC P_ALTERPK 'PK_HPDI_EVENTRELHIS', 'T_HPDI_EVENTRELHIS', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HPDI_EVENTRELHIS') CREATE INDEX IDX_HPDI_EVENTRELHIS ON T_HPDI_EVENTRELHIS ( FVID );



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