IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRIC_IMPLITEM' AND KSQL_COL_NAME ='FCATEGORY') 
 ALTER TABLE T_HRIC_IMPLITEM ADD (FCATEGORY CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRIC_IMPLITEM' AND KSQL_COL_NAME ='FVALIDATESERVICE') 
 ALTER TABLE T_HRIC_IMPLITEM ADD (FVALIDATESERVICE VARCHAR(1000) DEFAULT ' ' NOT NULL );

 IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_HRIC_BASEIMPLENTRY') 
 CREATE TABLE T_HRIC_BASEIMPLENTRY (
FENTRYID BIGINT DEFAULT 0 NOT NULL,
FSEQ INT DEFAULT 0 NOT NULL,
FID BIGINT DEFAULT 0 NOT NULL,
FIMPLITEMID BIGINT DEFAULT 0 NOT NULL
);
