/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\EB_constraint.sql **/
EXEC p_DropIdx 'IDX_EB_membermapping_weidu', 'T_EB_MEMBERMAPPING';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_MEMBERMAPPING') CREATE INDEX IDX_EB_MEMBERMAPPING ON T_EB_MEMBERMAPPING ( FID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_MEMBERMAPPING_SEQ') CREATE INDEX IDX_EB_MEMBERMAPPING_SEQ ON T_EB_MEMBERMAPPING ( FSEQ );

 EXEC P_ALTERPK 'PK_T_EB_TASKMONITOR', 'T_EB_TASKMONITOR', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_TASKMONITOR') CREATE INDEX IDX_EB_TASKMONITOR ON T_EB_TASKMONITOR ( FTASK );



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