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


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


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