/**Begin D:\dev\tools\PDM_UPGRADE\pdm1\HAOS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HAOS_PROJTEAMSTRUCT' AND KSQL_COL_NAME ='FINITSTATUS') 
 ALTER TABLE T_HAOS_PROJTEAMSTRUCT ADD (FINITSTATUS VARCHAR(2) DEFAULT '2' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HAOS_PROJTEAMSTRUCT' AND KSQL_COL_NAME ='FINITDATASOURCE') 
 ALTER TABLE T_HAOS_PROJTEAMSTRUCT ADD (FINITDATASOURCE VARCHAR(2) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HAOS_PROJTEAMSTRUCT' AND KSQL_COL_NAME ='FINITBATCH') 
 ALTER TABLE T_HAOS_PROJTEAMSTRUCT ADD (FINITBATCH BIGINT DEFAULT 0 NOT NULL );

/**End D:\dev\tools\PDM_UPGRADE\pdm1\HAOS_table.sql **/