IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_ASSETENTRY' AND KSQL_COL_NAME ='FMOBILEDELDONEFLAG')
ALTER TABLE T_ER_ASSETENTRY ADD (FMOBILEDELDONEFLAG INT DEFAULT 0 NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_ASSETENTRY' AND KSQL_COL_NAME ='FASSETSRCBILLID')
ALTER TABLE T_ER_ASSETENTRY ADD (FASSETSRCBILLID BIGINT DEFAULT 0 NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_ASSETENTRY' AND KSQL_COL_NAME ='FASSETENTRYID')
ALTER TABLE T_ER_ASSETENTRY ADD (FASSETENTRYID BIGINT DEFAULT 0 NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_ASSETENTRY' AND KSQL_COL_NAME ='FASSETSRCBILLNO')
ALTER TABLE T_ER_ASSETENTRY ADD (FASSETSRCBILLNO VARCHAR(200) DEFAULT ' ' NOT NULL);
