/**Begin D:\PDM\PDM_UPGRADE\pdm1\BCM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_DSLGADJUSTDATA' AND KSQL_COL_NAME ='FSOURCEC1') 
 ALTER TABLE T_BCM_DSLGADJUSTDATA ADD (FSOURCEC1 VARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_DSLGADJUSTDATA' AND KSQL_COL_NAME ='FSOURCEC2') 
 ALTER TABLE T_BCM_DSLGADJUSTDATA ADD (FSOURCEC2 VARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_DSLGADJUSTDATA' AND KSQL_COL_NAME ='FSOURCEC3') 
 ALTER TABLE T_BCM_DSLGADJUSTDATA ADD (FSOURCEC3 VARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_DSLGADJUSTDATA' AND KSQL_COL_NAME ='FSOURCEC4') 
 ALTER TABLE T_BCM_DSLGADJUSTDATA ADD (FSOURCEC4 VARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_DSLGADJUSTDATA' AND KSQL_COL_NAME ='FSOURCEICP') 
 ALTER TABLE T_BCM_DSLGADJUSTDATA ADD (FSOURCEICP VARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_DSLGADJUSTDATA' AND KSQL_COL_NAME ='FSOURCEACCOUNT') 
 ALTER TABLE T_BCM_DSLGADJUSTDATA ADD (FSOURCEACCOUNT VARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_ISDIMMAP_AUTOLOG' AND KSQL_COL_NAME ='FSCHEMENUMBER') 
 ALTER TABLE T_BCM_ISDIMMAP_AUTOLOG ADD (FSCHEMENUMBER VARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_ISDIMMAP_AUTOLOG' AND KSQL_COL_NAME ='FSCHEMENAME') 
 ALTER TABLE T_BCM_ISDIMMAP_AUTOLOG ADD (FSCHEMENAME NVARCHAR(50) DEFAULT ' ' NOT NULL );

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