/**Begin D:\PDM_UPGRADE\PDM1\BEI_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BEI_SERVICECONFIG' AND KSQL_COL_NAME IN ('FUSERTYPE')) 
 ALTER TABLE T_BEI_SERVICECONFIG ADD (FUSERTYPE VARCHAR(50) );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BEI_SERVICECONFIG' AND KSQL_COL_NAME IN ('FUSERACCOUNT')) 
 ALTER TABLE T_BEI_SERVICECONFIG ADD (FUSERACCOUNT VARCHAR(50) );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BEI_SERVICECONFIG' AND KSQL_COL_NAME IN ('FPUBLICCANAME')) 
 ALTER TABLE T_BEI_SERVICECONFIG ADD (FPUBLICCANAME VARCHAR(50) );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BEI_SERVICECONFIG' AND KSQL_COL_NAME IN ('FPUBLICCAFILE')) 
 ALTER TABLE T_BEI_SERVICECONFIG ADD (FPUBLICCAFILE NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BEI_SERVICECONFIG' AND KSQL_COL_NAME IN ('FPUBLICCAFILE_TAG')) 
 ALTER TABLE T_BEI_SERVICECONFIG ADD (FPUBLICCAFILE_TAG NCLOB );

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