/**Begin D:\DBA\PDM_UPGRADE\PDM1\BCM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_STRUCTOFSCENE' AND KSQL_COL_NAME IN ('FISVERSIONED')) 
 ALTER TABLE T_BCM_STRUCTOFSCENE ADD (FISVERSIONED CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_STRUCTOFSCENE' AND KSQL_COL_NAME IN ('FSCENEQUOTEID')) 
 ALTER TABLE T_BCM_STRUCTOFSCENE ADD (FSCENEQUOTEID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_STRUCTOFSCENE' AND KSQL_COL_NAME IN ('FALONEMERGECONFIG')) 
 ALTER TABLE T_BCM_STRUCTOFSCENE ADD (FALONEMERGECONFIG CHAR(1) DEFAULT '0' NOT NULL );

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