/**Begin D:\PDM_UPGRADE\PDM1\HRCS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_ESIGNAPPCFG' AND KSQL_COL_NAME ='FESIGNSP')
 ALTER TABLE T_HRCS_ESIGNAPPCFG ADD (FESIGNSP BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_ESIGNAPPCFG' AND KSQL_COL_NAME ='FTEMPSPID')
 ALTER TABLE T_HRCS_ESIGNAPPCFG ADD (FTEMPSPID VARCHAR(60) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_ESIGNAPPCFG' AND KSQL_COL_NAME ='FTHIRDCORPID')
 ALTER TABLE T_HRCS_ESIGNAPPCFG ADD (FTHIRDCORPID VARCHAR(60) DEFAULT ' ' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_ESIGNCOSEAL' AND KSQL_COL_NAME ='FESIGNAPP')
 ALTER TABLE T_HRCS_ESIGNCOSEAL ADD (FESIGNAPP BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_ESIGNCOSEAL' AND KSQL_COL_NAME ='FTHIRDAUDITSTATUS')
 ALTER TABLE T_HRCS_ESIGNCOSEAL ADD (FTHIRDAUDITSTATUS VARCHAR(2) DEFAULT '0' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_ESIGNSEALAUTH' AND KSQL_COL_NAME ='FESIGNSP')
 ALTER TABLE T_HRCS_ESIGNSEALAUTH ADD (FESIGNSP BIGINT DEFAULT 0 NOT NULL );

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