/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MRP_constraint.sql **/
 EXEC P_ALTERPK 'PK_MRP_OPTION_PERCENT', 'T_MRP_OPTION_PERCENT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MRP_OPTION_PERCENT') CREATE INDEX IDX_MRP_OPTION_PERCENT ON T_MRP_OPTION_PERCENT ( FBILLNO );


 EXEC P_ALTERPK 'PK_T_MRP_BFTRANSFERMDS', 'T_MRP_BFTRANSFERMDS', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MRP_BFTRANSFERMDS_FID') CREATE INDEX IDX_MRP_BFTRANSFERMDS_FID ON T_MRP_BFTRANSFERMDS ( FID );


 EXEC p_AlterPK 'PK_T_MRP_BOMEXPANDENTRY', 'T_MRP_BOMEXPANDENTRY', 'FENTRYID', '1';
 EXEC p_AlterPK 'PK_T_MRP_DEMANDBILLENTRY', 'T_MRP_DEMANDBILLENTRY', 'FENTRYID', '1';

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