/**Begin D:\PDM\PDM_UPGRADE\pdm1\BCM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_DATACOMPARISONTABLE' AND KSQL_COL_NAME ='FMATCHED') 
 ALTER TABLE T_BCM_DATACOMPARISONTABLE ADD (FMATCHED 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 ='FISSRCID') 
 ALTER TABLE T_BCM_HWPARAM ADD (FISSRCID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_HWPARAM' AND KSQL_COL_NAME ='FISTARGID') 
 ALTER TABLE T_BCM_HWPARAM ADD (FISTARGID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_HWPARAM' AND KSQL_COL_NAME ='FISSCHEMEID') 
 ALTER TABLE T_BCM_HWPARAM ADD (FISSCHEMEID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_BCM_HWPROCESSMAPPING') 
 CREATE TABLE T_BCM_HWPROCESSMAPPING (
FENTRYID BIGINT DEFAULT 0 NOT NULL,
FID BIGINT DEFAULT 0 NOT NULL,
FSEQ INT DEFAULT 0 NOT NULL,
FSRCPROCESS VARCHAR(50) DEFAULT ' ' NOT NULL,
FTRAGETPROCESS BIGINT DEFAULT 0 NOT NULL
);



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