/**Begin D:\k3Cloud\PDM_UPGRADE\PDM1\MDS_constraint.sql **/
 EXEC P_ALTERPK 'PK_MDS_PRODUCTCHANGE_L', 'T_MDS_PRODUCTCHANGE_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_MDS_PRODUCTCHANGE', 'T_MDS_PRODUCTCHANGE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MDS_PRODUCTCHANGE_NU') CREATE INDEX IDX_MDS_PRODUCTCHANGE_NU ON T_MDS_PRODUCTCHANGE ( FNUMBER );



/**End D:\k3Cloud\PDM_UPGRADE\PDM1\MDS_constraint.sql **/
