/**Begin D:\PDM_UPGRADE\PDM1\BCM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_CHKNOTEINFO' AND KSQL_COL_NAME IN ('FSCENEID')) 
 ALTER TABLE T_BCM_CHKNOTEINFO ADD (FSCENEID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_CHKNOTEINFO' AND KSQL_COL_NAME IN ('FYEARID')) 
 ALTER TABLE T_BCM_CHKNOTEINFO ADD (FYEARID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_CHKNOTEINFO' AND KSQL_COL_NAME IN ('FPERIODID')) 
 ALTER TABLE T_BCM_CHKNOTEINFO ADD (FPERIODID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_CHKNOTEINFO' AND KSQL_COL_NAME IN ('FCURRENCYID')) 
 ALTER TABLE T_BCM_CHKNOTEINFO ADD (FCURRENCYID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_CHKNOTEINFO' AND KSQL_COL_NAME IN ('FENTITYID')) 
 ALTER TABLE T_BCM_CHKNOTEINFO ADD (FENTITYID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_CHKNOTEINFO' AND KSQL_COL_NAME IN ('FTEMPLATEID')) 
 ALTER TABLE T_BCM_CHKNOTEINFO ADD (FTEMPLATEID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_CHKNOTEINFO' AND KSQL_COL_NAME IN ('FTYPE')) 
 ALTER TABLE T_BCM_CHKNOTEINFO ADD (FTYPE CHAR(1) DEFAULT '1' NOT NULL );

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