/**Begin D:\zhaohui_zeng\PDM_UPGRADE\PDM1\MRP_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_PLANORDERENTRY' AND KSQL_COL_NAME ='FENTRYREPMATERIALS') 
 ALTER TABLE T_MRP_PLANORDERENTRY ADD (FENTRYREPMATERIALS NVARCHAR(512) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_PLANORDERENTRY' AND KSQL_COL_NAME ='FENTRYREPQTY') 
 ALTER TABLE T_MRP_PLANORDERENTRY ADD (FENTRYREPQTY DECIMAL(23,10) DEFAULT 0 NOT NULL );

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