/**Begin C:\Users\rd_jin_gu\Documents\work\PDM_UPGRADE\PDM1\HRCS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_LABELVALUERULE' AND KSQL_COL_NAME ='FSERVICE') 
 ALTER TABLE T_HRCS_LABELVALUERULE ADD (FSERVICE VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_LABEL' AND KSQL_COL_NAME ='FCONFIGTYPE') 
 ALTER TABLE T_HRCS_LABEL ADD (FCONFIGTYPE CHAR(1) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_LABELPOLICY' AND KSQL_COL_NAME ='FCONFIGTYPE') 
 ALTER TABLE T_HRCS_LABELPOLICY ADD (FCONFIGTYPE CHAR(1) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_HRCS_LBLSTRATEGYENTRY') 
 CREATE TABLE T_HRCS_LBLSTRATEGYENTRY (
FENTRYID BIGINT DEFAULT 0 NOT NULL,
FID BIGINT DEFAULT 0 NOT NULL,
FLABELVALUEID BIGINT DEFAULT 0 NOT NULL,
FSERVICE VARCHAR(255) DEFAULT ' ' NOT NULL,
FSEQ INT DEFAULT 0 NOT NULL
);



/**End C:\Users\rd_jin_gu\Documents\work\PDM_UPGRADE\PDM1\HRCS_table.sql **/
