/**Begin D:\PDM_UPGRADE\PDM1\BCM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_ANALYTICSSOLUTIONS' AND KSQL_COL_NAME IN ('FCATALOG')) 
 ALTER TABLE T_BCM_ANALYTICSSOLUTIONS ADD (FCATALOG BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_TEMPLATE' AND KSQL_COL_NAME IN ('FDOCCATALOG')) 
 ALTER TABLE T_BCM_TEMPLATE ADD (FDOCCATALOG BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_DSMAINDATAVERSION' AND KSQL_COL_NAME IN ('FDIMENSION')) 
 ALTER TABLE T_BCM_DSMAINDATAVERSION ADD (FDIMENSION VARCHAR(50) DEFAULT ' ' NOT NULL );

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