/**Begin D:\d_desk\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\BDM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BDM_MAIL_SETTING' AND KSQL_COL_NAME ='FMULTIMAILTITLE') 
 ALTER TABLE T_BDM_MAIL_SETTING ADD (FMULTIMAILTITLE NVARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BDM_MAIL_SETTING' AND KSQL_COL_NAME ='FMULTIMAILBODY') 
 ALTER TABLE T_BDM_MAIL_SETTING ADD (FMULTIMAILBODY NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BDM_MAIL_SETTING' AND KSQL_COL_NAME ='FMULTIMAILBODY_TAG') 
 ALTER TABLE T_BDM_MAIL_SETTING ADD (FMULTIMAILBODY_TAG NCLOB );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BDM_MAIL_SETTING' AND KSQL_COL_NAME ='FMULTIFIELDS') 
 ALTER TABLE T_BDM_MAIL_SETTING ADD (FMULTIFIELDS NVARCHAR(1000) DEFAULT ' ' NOT NULL );

/**End D:\d_desk\pdm\PDM_UPGRADE_1.1\PDM_UPGRADE\pdm1\BDM_table.sql **/
