/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\EB_constraint.sql **/
EXEC p_DropIdx 'IDX_EB_CONTROLRULEMAIN_FID', 'T_EB_CONTROLRULEMAIN';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_CONTROLRULEEFFECTIVE') CREATE INDEX IDX_EB_CONTROLRULEEFFECTIVE ON T_EB_CONTROLRULEMAIN ( FEFFECTIVEDATE ,FINVALIDDATE );
 
 
 EXEC P_ALTERPK 'PK_T_EB_TASKPROCESS', 'T_EB_TASKPROCESS', 'FID', '1';


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