
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REPAYMENTBILL' AND KSQL_COL_NAME ='FPAYMODEID') 
 ALTER TABLE T_ER_REPAYMENTBILL ADD (FPAYMODEID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REPAYMENTBILL' AND KSQL_COL_NAME ='FPAYERID') 
 ALTER TABLE T_ER_REPAYMENTBILL ADD (FPAYERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REPAYMENTBILL' AND KSQL_COL_NAME ='FPAYERBANKID') 
 ALTER TABLE T_ER_REPAYMENTBILL ADD (FPAYERBANKID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REPAYMENTBILL' AND KSQL_COL_NAME ='FPAYERACCOUNT') 
 ALTER TABLE T_ER_REPAYMENTBILL ADD (FPAYERACCOUNT NVARCHAR(80) DEFAULT ' ' NOT NULL );

