/**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 ='FENTRYNUMBER') 
 ALTER TABLE T_BCM_DATACOMPARISONTABLE ADD (FENTRYNUMBER VARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_BCM_TRIANGLEBASEINFO') 
 CREATE TABLE T_BCM_TRIANGLEBASEINFO (
FID BIGINT DEFAULT 0 NOT NULL,
FMODELID BIGINT DEFAULT 0 NOT NULL,
FSOURCEID BIGINT DEFAULT 0 NOT NULL,
FTARGETID BIGINT DEFAULT 0 NOT NULL,
FSORT INT DEFAULT 0 NOT NULL
);



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