IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_PAYMENTBILL_E' AND KSQL_COL_NAME IN ('FVERSION'))
 ALTER TABLE T_CAS_PAYMENTBILL_E ADD (FVERSION NVARCHAR(255) DEFAULT ' ' );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_RECEIVINGBILL_E' AND KSQL_COL_NAME IN ('FVERSION'))
ALTER TABLE T_CAS_RECEIVINGBILL_E ADD (FVERSION NVARCHAR(255) DEFAULT ' ' );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_AGENTPAYBILL_E' AND KSQL_COL_NAME IN ('FVERSION'))
ALTER TABLE T_CAS_AGENTPAYBILL_E ADD (FVERSION NVARCHAR(255) DEFAULT ' ' );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_AGENTPAYBILLENTRY_E' AND KSQL_COL_NAME IN ('FVERSION'))
ALTER TABLE T_CAS_AGENTPAYBILLENTRY_E ADD (FVERSION NVARCHAR(255) DEFAULT ' ' );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_EXCHANGEBILL' AND KSQL_COL_NAME IN ('FVERSION'))
ALTER TABLE T_CAS_EXCHANGEBILL ADD (FVERSION NVARCHAR(255) DEFAULT ' ' );


