/**Begin D:\PDM_UPGRADE\PDM1\HAOS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HAOS_EMPTYREMAINSTAFF' AND KSQL_COL_NAME IN ('FINTRANENTRYSTAFFCOUNT'))
 ALTER TABLE T_HAOS_EMPTYREMAINSTAFF ADD (FINTRANENTRYSTAFFCOUNT INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HAOS_EMPTYREMAINSTAFF' AND KSQL_COL_NAME IN ('FINTRANINSTAFFCOUNT'))
 ALTER TABLE T_HAOS_EMPTYREMAINSTAFF ADD (FINTRANINSTAFFCOUNT INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HAOS_EMPTYREMAINSTAFF' AND KSQL_COL_NAME IN ('FINTRANOUTSTAFFCOUNT'))
 ALTER TABLE T_HAOS_EMPTYREMAINSTAFF ADD (FINTRANOUTSTAFFCOUNT INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HAOS_EMPTYREMAINSTAFF' AND KSQL_COL_NAME IN ('FINTRANDEPARTSTAFFCOUNT'))
 ALTER TABLE T_HAOS_EMPTYREMAINSTAFF ADD (FINTRANDEPARTSTAFFCOUNT INT DEFAULT 0 NOT NULL );

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