/**Begin D:\PDM_UPGRADE\PDM1\BEI_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BEI_UPDATEPAYSTAT_ENTRY' AND KSQL_COL_NAME IN ('FCONFIRMUSERID'))
 ALTER TABLE T_BEI_UPDATEPAYSTAT_ENTRY ADD (FCONFIRMUSERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BEI_UPDATEPAYSTAT_ENTRY' AND KSQL_COL_NAME IN ('FCONFIRMCONTENT'))
 ALTER TABLE T_BEI_UPDATEPAYSTAT_ENTRY ADD (FCONFIRMCONTENT NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BEI_UPDATEPAYSTAT_ENTRY' AND KSQL_COL_NAME IN ('FCONFIRMTIME'))
 ALTER TABLE T_BEI_UPDATEPAYSTAT_ENTRY ADD (FCONFIRMTIME DATETIME );

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