/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\PUR_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_PUR_REGSUPPLIER_PROV', 'T_PUR_REGSUPPLIER_PROV', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'T_PUR_REGSUPPLIER_PROV_FID') CREATE INDEX T_PUR_REGSUPPLIER_PROV_FID ON T_PUR_REGSUPPLIER_PROV ( FBASEDATAID ,FID );


EXEC p_DropIdx 'IDX_PUR_COMPONENT_L_FID', 'T_PUR_COMPONENT_L';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PUR_COMPONENT_L_FLID') CREATE INDEX IDX_PUR_COMPONENT_L_FLID ON T_PUR_COMPONENT_L ( FID ,FLOCALEID );


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