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

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