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

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HPDI_BUVALUECONFIGENT') CREATE INDEX IDX_HPDI_BUVALUECONFIGENT ON T_HPDI_BUVALUECONFIGENT ( FAPIDEPLOYID );

EXEC p_DropIdx 'IDX_HPDI_BUVALUECONFIGENT', 'T_HPDI_BUVALUECONFIGENT';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HPDI_BUVALUECONFIGENT') CREATE INDEX IDX_HPDI_BUVALUECONFIGENT ON T_HPDI_BUVALUECONFIGENT ( FAPIDEPLOYID );

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