/**Begin D:\PDM_UPGRADE\PDM1\BEI_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BEI_BANKPAYINGBILL' AND KSQL_COL_NAME IN ('FBITBACKOPINION')) 
 ALTER TABLE T_BEI_BANKPAYINGBILL ADD (FBITBACKOPINION NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BEI_BANKTRANSDOWNBILL' AND KSQL_COL_NAME IN ('FBITBACKOPINION')) 
 ALTER TABLE T_BEI_BANKTRANSDOWNBILL ADD (FBITBACKOPINION NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BEI_BANKTRANSUPBILL' AND KSQL_COL_NAME IN ('FBITBACKOPINION')) 
 ALTER TABLE T_BEI_BANKTRANSUPBILL ADD (FBITBACKOPINION NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BEI_BANKAGENTPAYBILL' AND KSQL_COL_NAME IN ('FBITBACKOPINION')) 
 ALTER TABLE T_BEI_BANKAGENTPAYBILL ADD (FBITBACKOPINION NVARCHAR(255) DEFAULT ' ' NOT NULL );

/**End D:\PDM_UPGRADE\PDM1\BEI_table.sql **/
