/**Begin D:\PDM_UPGRADE\PDM1\HRCS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_KEYWORDMAPPING' AND KSQL_COL_NAME IN ('FCONTEMPMAINID')) 
 ALTER TABLE T_HRCS_KEYWORDMAPPING ADD (FCONTEMPMAINID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_KEYWORDMAPPING' AND KSQL_COL_NAME IN ('FCREATORID')) 
 ALTER TABLE T_HRCS_KEYWORDMAPPING ADD (FCREATORID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_KEYWORDMAPPING' AND KSQL_COL_NAME IN ('FMODIFIERID')) 
 ALTER TABLE T_HRCS_KEYWORDMAPPING ADD (FMODIFIERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_KEYWORDMAPPING' AND KSQL_COL_NAME IN ('FCREATETIME')) 
 ALTER TABLE T_HRCS_KEYWORDMAPPING ADD (FCREATETIME DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_KEYWORDMAPPING' AND KSQL_COL_NAME IN ('FMODIFYTIME')) 
 ALTER TABLE T_HRCS_KEYWORDMAPPING ADD (FMODIFYTIME DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_KEYMAPPINGENTRY' AND KSQL_COL_NAME IN ('FVARIABLEID')) 
 ALTER TABLE T_HRCS_KEYMAPPINGENTRY ADD (FVARIABLEID BIGINT DEFAULT 0 NOT NULL );

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