/**Begin D:\PDM_UPGRADE\PDM1\MRP_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_CALDETAILENTRY' AND KSQL_COL_NAME ='FSUPPLYSUPPLIER') 
 ALTER TABLE T_MRP_CALDETAILENTRY ADD (FSUPPLYSUPPLIER BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_CALDETAILENTRY' AND KSQL_COL_NAME ='FDEMANDSUPPLIER') 
 ALTER TABLE T_MRP_CALDETAILENTRY ADD (FDEMANDSUPPLIER BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_PLANORDER' AND KSQL_COL_NAME ='FSUPPLIER') 
 ALTER TABLE T_MRP_PLANORDER ADD (FSUPPLIER BIGINT DEFAULT 0 NOT NULL );

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