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

 EXEC P_ALTERPK 'PK_HPDI_BIZDATABILLDETAIL', 'T_HPDI_BIZDATABILLDETAIL', 'FDETAILID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_HPDI_BIZDATABILLDETAIL' AND KSQL_INDNAME = 'IDX_HPDI_BIZDATABILLDETAIL') CREATE INDEX IDX_HPDI_BIZDATABILLDETAIL ON T_HPDI_BIZDATABILLDETAIL ( FENTRYID );



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