/**Begin D:\PDM_UPGRADE\PDM1\HRCS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_ACTIVITYINS' AND KSQL_COL_NAME ='FTASKSWITCH') 
 ALTER TABLE T_HRCS_ACTIVITYINS ADD (FTASKSWITCH VARCHAR(10) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_ACTIVITYINS' AND KSQL_COL_NAME ='FGLOBALTASKID') 
 ALTER TABLE T_HRCS_ACTIVITYINS ADD (FGLOBALTASKID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_ACTIVITYINS' AND KSQL_COL_NAME ='FSSCTASKID') 
 ALTER TABLE T_HRCS_ACTIVITYINS ADD (FSSCTASKID BIGINT DEFAULT 0 NOT NULL );

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