/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MRP_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_MRP_RESCCSENTRY', 'T_MRP_RESCCSENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MRP_RESCCSENTRY') CREATE INDEX IDX_MRP_RESCCSENTRY ON T_MRP_RESCCSENTRY ( FID ,FSEQ );


 EXEC P_ALTERPK 'PK_T_MRP_RESCONFCOOR', 'T_MRP_RESCONFCOOR', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MRP_RESCONFCOOR') CREATE INDEX IDX_MRP_RESCONFCOOR ON T_MRP_RESCONFCOOR ( FORGID ,FBILLNO );


 EXEC P_ALTERPK 'PK_T_MRP_RESCOORENTRY', 'T_MRP_RESCOORENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MRP_RESCOORENTRY') CREATE INDEX IDX_MRP_RESCOORENTRY ON T_MRP_RESCOORENTRY ( FID ,FSEQ );



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