/**Begin D:\PDM\PDM_UPGRADE\pdm1\BCM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_INVRELATIONSET' AND KSQL_COL_NAME ='FSHOWINVALIDENTITY') 
 ALTER TABLE T_BCM_INVRELATIONSET ADD (FSHOWINVALIDENTITY CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_PAPERTEMPLATE' AND KSQL_COL_NAME ='FMFFORMULA')
 ALTER TABLE T_BCM_PAPERTEMPLATE ADD (FMFFORMULA VARCHAR(500) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_INTRREPORT_S' AND KSQL_COL_NAME ='FTEMPLATEID') 
 ALTER TABLE T_BCM_INTRREPORT_S ADD (FTEMPLATEID BIGINT DEFAULT 0 NOT NULL );

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