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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MRP_CMPLRS') CREATE INDEX IDX_MRP_CMPLRS ON T_MRP_CMPLRS ( FNUMBER ,FCREATEORGID );


 EXEC P_ALTERPK 'PK_T_MRP_CMPLRS_L', 'T_MRP_CMPLRS_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MRP_CMPLRS_L') CREATE INDEX IDX_MRP_CMPLRS_L ON T_MRP_CMPLRS_L ( FID ,FLOCALEID );



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