/**Begin D:\k3Cloud\PDM_UPGRADE\PDM1\MDS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_FNREPORT' AND KSQL_COL_NAME ='FHWREMAINQTY') 
 ALTER TABLE T_MDS_FNREPORT ADD (FHWREMAINQTY DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_FNREPORT' AND KSQL_COL_NAME ='FMANUFACTUREID') 
 ALTER TABLE T_MDS_FNREPORT ADD (FMANUFACTUREID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_FNREPORT' AND KSQL_COL_NAME ='FSRCMATERIALID') 
 ALTER TABLE T_MDS_FNREPORT ADD (FSRCMATERIALID BIGINT DEFAULT 0 NOT NULL );

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