IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_FNREPORT' AND KSQL_COL_NAME ='FDEMANDOFFSET') 
 ALTER TABLE T_MDS_FNREPORT ADD (FDEMANDOFFSET  VARCHAR(30) DEFAULT ' ' NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_FNREPORTBK' AND KSQL_COL_NAME ='FDEMANDOFFSET') 
 ALTER TABLE T_MDS_FNREPORTBK ADD (FDEMANDOFFSET  VARCHAR(30) DEFAULT ' ' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_REQUESTRECORD' AND KSQL_COL_NAME ='FDEMANDOFFSET') 
 ALTER TABLE T_MDS_REQUESTRECORD ADD (FDEMANDOFFSET  VARCHAR(30) DEFAULT ' ' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_FNREPORT' AND KSQL_COL_NAME ='FREQMANUFACTUREID') 
 ALTER TABLE T_MDS_FNREPORT ADD (FREQMANUFACTUREID  BIGINT DEFAULT 0 NOT NULL  );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_FNREPORTBK' AND KSQL_COL_NAME ='FREQMANUFACTUREID') 
 ALTER TABLE T_MDS_FNREPORTBK ADD (FREQMANUFACTUREID  BIGINT DEFAULT 0 NOT NULL  );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_REQUESTRECORD' AND KSQL_COL_NAME ='FMANUSTRATEGY') 
 ALTER TABLE T_MDS_REQUESTRECORD ADD (FMANUSTRATEGY  BIGINT DEFAULT 0 NOT NULL  );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_REQUESTRECORD' AND KSQL_COL_NAME ='FSTOCKORG') 
 ALTER TABLE T_MDS_REQUESTRECORD ADD (FSTOCKORG  BIGINT DEFAULT 0 NOT NULL  );