/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\EB_constraint.sql **/
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_BIZRULE_CATA') CREATE INDEX IDX_EB_BIZRULE_CATA ON T_EB_BIZRULE ( FSTATUS ,FCATALOGID );

EXEC p_DropIdx 'IDX_EB_BrallocateEntity_Tem', 'T_EB_BRALLOCATEENTITY';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_BRALLOCATEENTITY_TEM') CREATE INDEX IDX_EB_BRALLOCATEENTITY_TEM ON T_EB_BRALLOCATEENTITY ( FTEMPLATEID ,FEXECUTETYPE );


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