/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\EB_constraint.sql **/
EXEC p_DropIdx 'IDX_EB_CONTROLRULEMAIN', 'T_EB_CONTROLRULEMAIN';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_CONTROLRULEMAINMODEL') CREATE INDEX IDX_EB_CONTROLRULEMAINMODEL ON T_EB_CONTROLRULEMAIN ( FMODELID ,FISDEFAULT );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_CONTROLRULEMAINGROUP') CREATE INDEX IDX_EB_CONTROLRULEMAINGROUP ON T_EB_CONTROLRULEMAIN ( FGROUPID );


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