/**Begin D:\zhaohui_zeng\PDM_UPGRADE\PDM1\MRP_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_PLANORDER' AND KSQL_COL_NAME ='FISHISTORY') 
 ALTER TABLE T_MRP_PLANORDER ADD (FISHISTORY CHAR(1) DEFAULT '0' NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_PLANORDER' AND KSQL_COL_NAME ='FHISTORYDATE') 
 ALTER TABLE T_MRP_PLANORDER ADD (FHISTORYDATE DATETIME );

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