IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REPAYMENTENTRY' AND KSQL_COL_NAME ='FEXPENSEITEMID') 
 ALTER TABLE T_ER_REPAYMENTENTRY ADD (FEXPENSEITEMID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REPAYMENTENTRY' AND KSQL_COL_NAME ='FREVERSEORIREPAYAMOUNT') 
 ALTER TABLE T_ER_REPAYMENTENTRY ADD (FREVERSEORIREPAYAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REPAYMENTENTRY' AND KSQL_COL_NAME ='FREVERSEREPAYAMOUNT') 
 ALTER TABLE T_ER_REPAYMENTENTRY ADD (FREVERSEREPAYAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REPAYMENTENTRY' AND KSQL_COL_NAME ='FREPAYEXCHANGERATE') 
 ALTER TABLE T_ER_REPAYMENTENTRY ADD (FREPAYEXCHANGERATE DECIMAL(23,10) DEFAULT 0 NOT NULL );
