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

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_ACTSCHEMEENTRY' AND KSQL_COL_NAME ='FACTIVITYID') 
 ALTER TABLE T_HRCS_ACTSCHEMEENTRY ADD (FACTIVITYID BIGINT DEFAULT 0 NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_ACTIVITY' AND KSQL_COL_NAME ='FACTIVITYTYPEID') 
 ALTER TABLE T_HRCS_ACTIVITY ADD (FACTIVITYTYPEID BIGINT DEFAULT 0 NOT NULL );

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