/**Begin D:\PDM_UPGRADE\PDM1\HBSS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HBSS_CAPACITYGROUP_L' AND KSQL_COL_NAME IN ('FFULLNAME')) 
 ALTER TABLE T_HBSS_CAPACITYGROUP_L ADD (FFULLNAME NVARCHAR(2000) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HBSS_CAPACITYGROUP' AND KSQL_COL_NAME IN ('FLONGNUMBER')) 
 ALTER TABLE T_HBSS_CAPACITYGROUP ADD (FLONGNUMBER VARCHAR(2000) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HBSS_CAPACITYGROUP' AND KSQL_COL_NAME IN ('FFULLNAME')) 
 ALTER TABLE T_HBSS_CAPACITYGROUP ADD (FFULLNAME NVARCHAR(2000) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HBSS_CAPACITYGROUP' AND KSQL_COL_NAME IN ('FLEVEL')) 
 ALTER TABLE T_HBSS_CAPACITYGROUP ADD (FLEVEL INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HBSS_CAPACITYGROUP' AND KSQL_COL_NAME IN ('FISLEAF')) 
 ALTER TABLE T_HBSS_CAPACITYGROUP ADD (FISLEAF CHAR(1) DEFAULT ' ' NOT NULL );

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