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