
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_MFTOMREQENTRY' AND KSQL_COL_NAME ='FMATERIALREP') 
ALTER TABLE T_IM_MDC_MFTOMREQENTRY ADD (FMATERIALREP BIGINT DEFAULT 0 NOT NULL );

 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_MFTOMREQENTRY' AND KSQL_COL_NAME ='FMATERIALREPLACE') 
ALTER TABLE T_IM_MDC_MFTOMREQENTRY ADD (FMATERIALREPLACE NVARCHAR(50) DEFAULT ' ' NOT NULL );


 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_MFTOMREQENTRY' AND KSQL_COL_NAME ='FSTOCKBILLNO') 
ALTER TABLE T_IM_MDC_MFTOMREQENTRY ADD (FSTOCKBILLNO NVARCHAR(50) DEFAULT ' ' NOT NULL );


 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_MFTOMREQENTRY' AND KSQL_COL_NAME ='FSTOCKENTRYSEQ') 
ALTER TABLE T_IM_MDC_MFTOMREQENTRY ADD (FSTOCKENTRYSEQ INT DEFAULT 0 NOT NULL);

 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_MFTOMREQENTRY' AND KSQL_COL_NAME ='FSTOCKENTRYID') 
ALTER TABLE T_IM_MDC_MFTOMREQENTRY ADD (FSTOCKENTRYID BIGINT DEFAULT 0 NOT NULL );