/**Begin D:\PDM_UPGRADE\PDM1\HRCS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_PINITUSERDIM' AND KSQL_COL_NAME IN ('FORGCONTAINSSUBSTR')) 
 ALTER TABLE T_HRCS_PINITUSERDIM ADD (FORGCONTAINSSUBSTR NCLOB DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_PINITUSERDIMVAL' AND KSQL_COL_NAME IN ('FCONTAINSSUB')) 
 ALTER TABLE T_HRCS_PINITUSERDIMVAL ADD (FCONTAINSSUB CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_PINITUSERDIMVAL' AND KSQL_COL_NAME IN ('FVALTYPE')) 
 ALTER TABLE T_HRCS_PINITUSERDIMVAL ADD (FVALTYPE VARCHAR(10) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_PINITUSERDIMVAL' AND KSQL_COL_NAME IN ('FDYNACONDID')) 
 ALTER TABLE T_HRCS_PINITUSERDIMVAL ADD (FDYNACONDID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_PINITROLEDATA' AND KSQL_COL_NAME IN ('FORGCONTAINSSUBSTR')) 
 ALTER TABLE T_HRCS_PINITROLEDATA ADD (FORGCONTAINSSUBSTR NCLOB DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_PINITROLEDATAVAL' AND KSQL_COL_NAME IN ('FCONTAINSSUB')) 
 ALTER TABLE T_HRCS_PINITROLEDATAVAL ADD (FCONTAINSSUB CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_PINITROLEDATAVAL' AND KSQL_COL_NAME IN ('FVALTYPE')) 
 ALTER TABLE T_HRCS_PINITROLEDATAVAL ADD (FVALTYPE VARCHAR(10) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_PINITROLEDATAVAL' AND KSQL_COL_NAME IN ('FDYNACONDID')) 
 ALTER TABLE T_HRCS_PINITROLEDATAVAL ADD (FDYNACONDID BIGINT DEFAULT 0 NOT NULL );

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