/**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_CONTROLRULEACC_FID') CREATE INDEX IDX_EB_CONTROLRULEACC_FID ON T_EB_CONTROLRULEACCOUNT ( FID );

EXEC p_DropIdx 'IDX_EB_CONTROLRULEMAINMODEL', '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 );


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