/**Begin D:\zhaohui_zeng\PDM_UPGRADE\pdm1\MSPLAN_constraint.sql **/
 EXEC P_ALTERPK 'PK_MSPLAN_MRPCALC_ERRORLOG', 'T_MSPLAN_MRPCALC_ERRORLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MSPLAN_MRPCALC_ERRORLOG') CREATE INDEX IDX_MSPLAN_MRPCALC_ERRORLOG ON T_MSPLAN_MRPCALC_ERRORLOG ( FRUNLOGNO );



/**End D:\zhaohui_zeng\PDM_UPGRADE\pdm1\MSPLAN_constraint.sql **/
