/**Begin D:\PDM\PDM_UPGRADE\pdm1\BCM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_EADATAPUSHSCHEMBASE' AND KSQL_COL_NAME ='FTABLENAME') 
 ALTER TABLE T_BCM_EADATAPUSHSCHEMBASE ADD (FTABLENAME VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_RPTADJUST' AND KSQL_COL_NAME ='FCANCELSUBMITTERID') 
 ALTER TABLE T_BCM_RPTADJUST ADD (FCANCELSUBMITTERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_RPTADJUST' AND KSQL_COL_NAME ='FCANCELSUBMITTIME') 
 ALTER TABLE T_BCM_RPTADJUST ADD (FCANCELSUBMITTIME DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_DSLGREPORTRULES' AND KSQL_COL_NAME ='FREPORTRULEID') 
 ALTER TABLE T_BCM_DSLGREPORTRULES ADD (FREPORTRULEID BIGINT DEFAULT 0 NOT NULL );

/**End D:\PDM\PDM_UPGRADE\pdm1\BCM_table.sql **/
