/**Begin D:\zhaohui_zeng\PDM_UPGRADE\PDM1\MRP_constraint.sql **/
 EXEC P_ALTERPK 'PK_MRP_REPLACE_LOG', 'T_MRP_REPLACE_LOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'T_MRP_REPLACE_LOG_FNUMBER') CREATE INDEX T_MRP_REPLACE_LOG_FNUMBER ON T_MRP_REPLACE_LOG ( FRUNLOG );


 EXEC P_ALTERPK 'PK_MRP_REP_LOG_M_ENTRY', 'T_MRP_REP_LOG_M_ENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_MRP_REP_LOG_R_ENTRY', 'T_MRP_REP_LOG_R_ENTRY', 'FENTRYID', '1';

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



/**End D:\zhaohui_zeng\PDM_UPGRADE\PDM1\MRP_constraint.sql **/
