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

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_ENUMITEM' AND KSQL_COL_NAME IN ('FISSYSENUMITEM')) 
 ALTER TABLE T_BCM_ENUMITEM ADD (FISSYSENUMITEM BIGINT DEFAULT 0 NOT NULL );
 EXEC p_AlterColumn 'T_BCM_ENUMVALUE', 'FENUMITEMID', 'BIGINT', 'NOT NULL', '1111', '0';

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_ENUMVALUE' AND KSQL_COL_NAME IN ('FISSYSENUMVALUE')) 
 ALTER TABLE T_BCM_ENUMVALUE ADD (FISSYSENUMVALUE BIGINT DEFAULT 0 NOT NULL );

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


