/**Begin D:\DBA\PDM_UPGRADE\PDM1\BCM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_STATUS' AND KSQL_COL_NAME IN ('FCSLSCHEMEID')) 
 ALTER TABLE T_BCM_STATUS ADD (FCSLSCHEMEID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_PERMISSIONCLASS' AND KSQL_COL_NAME IN ('FFIDMMODELID')) 
 ALTER TABLE T_BCM_PERMISSIONCLASS ADD (FFIDMMODELID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_AUTH_DATA' AND KSQL_COL_NAME IN ('FFIDMMODELID')) 
 ALTER TABLE T_BCM_AUTH_DATA ADD (FFIDMMODELID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_PERMCLASS_ENTITY' AND KSQL_COL_NAME IN ('FFIDMMODELID')) 
 ALTER TABLE T_BCM_PERMCLASS_ENTITY ADD (FFIDMMODELID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_CHKREPORT' AND KSQL_COL_NAME IN ('FCSLSCHEMEID')) 
 ALTER TABLE T_BCM_CHKREPORT ADD (FCSLSCHEMEID BIGINT DEFAULT 0 NOT NULL );

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