/**Begin D:\DBA\1.4\PDM_UPGRADE\PDM1\BCM_table.sql **/
 EXEC p_AlterColumn 'T_BCM_DATACOLLECTLOG', 'FDIMS', 'NVARCHAR(2000)', 'NOT NULL', '0100', ''' ''';

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_DATACOLLECTLOG' AND KSQL_COL_NAME ='FPOS') 
 ALTER TABLE T_BCM_DATACOLLECTLOG ADD (FPOS VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_DATACOLLECTLOG' AND KSQL_COL_NAME ='FLOGTYPE') 
 ALTER TABLE T_BCM_DATACOLLECTLOG ADD (FLOGTYPE CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_DATACOLLECTLOG' AND KSQL_COL_NAME ='FEXTDIMID') 
 ALTER TABLE T_BCM_DATACOLLECTLOG ADD (FEXTDIMID BIGINT DEFAULT 0 NOT NULL );

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