/**Begin D:\PDM_UPGRADE\PDM1\BCM_table.sql **/

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_RPTDESCRIPTION' AND KSQL_COL_NAME IN ('FFYID')) 
 ALTER TABLE T_BCM_RPTDESCRIPTION ADD (FFYID BIGINT DEFAULT 0 NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_RPTDESCRIPTION' AND KSQL_COL_NAME IN ('FPERIODID')) 
 ALTER TABLE T_BCM_RPTDESCRIPTION ADD (FPERIODID BIGINT DEFAULT 0 NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_RPTDESCRIPTION' AND KSQL_COL_NAME IN ('FSCENEID')) 
 ALTER TABLE T_BCM_RPTDESCRIPTION ADD (FSCENEID BIGINT DEFAULT 0 NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_RPTDESCRIPTION' AND KSQL_COL_NAME IN ('FCURRENCYID')) 
 ALTER TABLE T_BCM_RPTDESCRIPTION ADD (FCURRENCYID BIGINT DEFAULT 0 NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_RPTDESCRIPTION' AND KSQL_COL_NAME IN ('FENTITYID')) 
 ALTER TABLE T_BCM_RPTDESCRIPTION ADD (FENTITYID BIGINT DEFAULT 0 NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_RPTDESCRIPTION' AND KSQL_COL_NAME IN ('FTEMPLATEID')) 
 ALTER TABLE T_BCM_RPTDESCRIPTION ADD (FTEMPLATEID BIGINT DEFAULT 0 NOT NULL );

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