/**Begin D:\PDM_UPGRADE\PDM1\POM_constraint.sql **/
 EXEC P_ALTERPK 'PK_MRP_PLANORDER_C', 'T_MRP_PLANORDER_C', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MRP_PLANORDER_C') CREATE INDEX IDX_MRP_PLANORDER_C ON T_MRP_PLANORDER_C ( FCMPLSETNUM );


 EXEC P_ALTERPK 'PK_MRP_PLANORDERENTRY_C', 'T_MRP_PLANORDERENTRY_C', 'FENTRYID', '1';

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



/**End D:\PDM_UPGRADE\PDM1\POM_constraint.sql **/
