/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BCM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_BREXECINFO' AND KSQL_COL_NAME ='FENTITY') 
 ALTER TABLE T_BCM_BREXECINFO ADD (FENTITY BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_STATUS' AND KSQL_COL_NAME ='FMODIFIERID') 
 ALTER TABLE T_BCM_STATUS ADD (FMODIFIERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_STATUS' AND KSQL_COL_NAME ='FMODIFYTIME') 
 ALTER TABLE T_BCM_STATUS ADD (FMODIFYTIME DATETIME );

/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BCM_table.sql **/
