/**Begin D:\PDM\PDM_UPGRADE\pdm1\BCM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_HWPARAM' AND KSQL_COL_NAME ='FISEXECUTERULE') 
 ALTER TABLE T_BCM_HWPARAM ADD (FISEXECUTERULE CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_HWPARAM' AND KSQL_COL_NAME ='FDEFINEDID') 
 ALTER TABLE T_BCM_HWPARAM ADD (FDEFINEDID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_HWPARAM' AND KSQL_COL_NAME ='FDEFINEDMEMID') 
 ALTER TABLE T_BCM_HWPARAM ADD (FDEFINEDMEMID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_HWPARAM' AND KSQL_COL_NAME ='FDEFINEDMEMPREFIX') 
 ALTER TABLE T_BCM_HWPARAM ADD (FDEFINEDMEMPREFIX VARCHAR(50) DEFAULT ' ' NOT NULL );

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