/**Begin D:\PDM\PDM_UPGRADE\pdm1\BCM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_RPTADJUSTCOMDIM' AND KSQL_COL_NAME ='FCOMENTITYSIGN') 
 ALTER TABLE T_BCM_RPTADJUSTCOMDIM ADD (FCOMENTITYSIGN VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_RPTADJUSTSPREADDIM' AND KSQL_COL_NAME ='FSPREADENTITYSIGN') 
 ALTER TABLE T_BCM_RPTADJUSTSPREADDIM ADD (FSPREADENTITYSIGN  VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_CHKREPORT' AND KSQL_COL_NAME ='FPROCESSLD') 
 ALTER TABLE T_BCM_CHKREPORT ADD (FPROCESSLD BIGINT DEFAULT 0 NOT NULL );
 EXEC p_AlterColumn 'T_BCM_DSLGADJUSTDATA', 'FDESCRIPTION', 'VARCHAR(2000)', 'NOT NULL', '0100', ''' ''';


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