/**Begin D:\DBA\1.4\PDM_UPGRADE\PDM1\BCM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_DATACOLLECTLOG' AND KSQL_COL_NAME ='FTYPE') 
 ALTER TABLE T_BCM_DATACOLLECTLOG ADD (FTYPE CHAR(1) DEFAULT '0' NOT NULL );
 EXEC p_AlterColumn 'T_BCM_DIMENSIONMAPNEW', 'FCOMMONASSIST', 'VARCHAR(2000)', 'NOT NULL', '0010', ''' ''';

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_DIMENSIONMAPNEW' AND KSQL_COL_NAME ='FFORMULA') 
 ALTER TABLE T_BCM_DIMENSIONMAPNEW ADD (FFORMULA VARCHAR(50) DEFAULT ' ' NOT NULL );

/**End D:\DBA\1.4\PDM_UPGRADE\PDM1\BCM_table.sql **/
