IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMBILL' AND KSQL_COL_NAME IN ('FRAMEWORKCONTRACT'))
ALTER TABLE T_ER_PUBREIMBILL ADD (FRAMEWORKCONTRACT CHAR(1) DEFAULT '0' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMBILL' AND KSQL_COL_NAME IN ('FCONTRACTSCONN'))
ALTER TABLE T_ER_PUBREIMBILL ADD (FCONTRACTSCONN VARCHAR(50) DEFAULT ' ' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PREPAYBILL' AND KSQL_COL_NAME IN ('FRAMEWORKCONTRACT'))
ALTER TABLE T_ER_PREPAYBILL ADD (FRAMEWORKCONTRACT CHAR(1) DEFAULT '0' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PREPAYBILL' AND KSQL_COL_NAME IN ('FCONTRACTSCONN'))
ALTER TABLE T_ER_PREPAYBILL ADD (FCONTRACTSCONN VARCHAR(50) DEFAULT ' ' NOT NULL );






