/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MRP_constraint.sql **/

 EXEC p_DropIdx 'IDX_MRP_PLS_DETAIL_ENTRY', 'T_MRP_PLS_DETAIL_ENTRY';
 
 EXEC p_DropIdx 'IDX_MRP_PLS_DETAIL', 'T_MRP_PLS_DETAIL';
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MRP_PLS_DETAILA') CREATE INDEX IDX_MRP_PLS_DETAILA ON T_MRP_PLS_DETAIL ( FPLSOPERATIONNO, FCREATETIME );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MRP_PLS_DETAIL_ENTRYA') CREATE INDEX IDX_MRP_PLS_DETAIL_ENTRYA ON T_MRP_PLS_DETAIL_ENTRY ( FID, FSEQ );

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