/**Begin D:\DBA\PDM_UPGRADE\PDM1\BCM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_RPASCHEME' AND KSQL_COL_NAME IN ('FEXECPARAM')) 
 ALTER TABLE T_BCM_RPASCHEME ADD (FEXECPARAM NVARCHAR(100) DEFAULT ' ' NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_BIZRULE' AND KSQL_COL_NAME IN ('FEXECUTETYPE')) 
 ALTER TABLE T_BCM_BIZRULE ADD (FEXECUTETYPE VARCHAR(2) DEFAULT '0' NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_BATCHEXPORTRPT' AND KSQL_COL_NAME IN ('FFILTERDIM')) 
 ALTER TABLE T_BCM_BATCHEXPORTRPT ADD (FFILTERDIM NCLOB );

/**End D:\DBA\PDM_UPGRADE\PDM1\BCM_table.sql **/
