/**Begin D:\pdm\PDM_UPGRADE\pdm_new\BDM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BDM_ST_QR_CODE_MANAGE' AND KSQL_COL_NAME ='FPHONEDISPLAYFLAG') 
 ALTER TABLE T_BDM_ST_QR_CODE_MANAGE ADD (FPHONEDISPLAYFLAG CHAR(1) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BDM_ST_QR_CODE_MANAGE' AND KSQL_COL_NAME ='FPHONEREQUIREDFLAG') 
 ALTER TABLE T_BDM_ST_QR_CODE_MANAGE ADD (FPHONEREQUIREDFLAG CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BDM_ST_QR_CODE_MANAGE' AND KSQL_COL_NAME ='FEMAILDISPLAYFLAG') 
 ALTER TABLE T_BDM_ST_QR_CODE_MANAGE ADD (FEMAILDISPLAYFLAG CHAR(1) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BDM_ST_QR_CODE_MANAGE' AND KSQL_COL_NAME ='FEMAILREQUIREDFLAG') 
 ALTER TABLE T_BDM_ST_QR_CODE_MANAGE ADD (FEMAILREQUIREDFLAG CHAR(1) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BDM_ST_QR_CODE_MANAGE' AND KSQL_COL_NAME ='FREMARKDISPLAYFLAG') 
 ALTER TABLE T_BDM_ST_QR_CODE_MANAGE ADD (FREMARKDISPLAYFLAG CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BDM_ST_QR_CODE_MANAGE' AND KSQL_COL_NAME ='FREMARKTIPS') 
 ALTER TABLE T_BDM_ST_QR_CODE_MANAGE ADD (FREMARKTIPS NVARCHAR(50) DEFAULT ' ' NOT NULL );

/**End D:\pdm\PDM_UPGRADE\pdm_new\BDM_table.sql **/
