/**Begin D:\PDM_UPGRADE\PDM1\HRCS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_ECONTEMPLATE' AND KSQL_COL_NAME IN ('FSEALTYPEID')) 
 ALTER TABLE T_HRCS_ECONTEMPLATE ADD (FSEALTYPEID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_ECONTEMPLATE' AND KSQL_COL_NAME IN ('FCORPORATESEAL')) 
 ALTER TABLE T_HRCS_ECONTEMPLATE ADD (FCORPORATESEAL CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_ECONTEMPLATE' AND KSQL_COL_NAME IN ('FLEGALSEALKEY')) 
 ALTER TABLE T_HRCS_ECONTEMPLATE ADD (FLEGALSEALKEY VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_ECONTEMPLATE' AND KSQL_COL_NAME IN ('FSEALWAY')) 
 ALTER TABLE T_HRCS_ECONTEMPLATE ADD (FSEALWAY VARCHAR(10) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_ECONTEMPLATE' AND KSQL_COL_NAME IN ('FPERSIONSIGNWAY')) 
 ALTER TABLE T_HRCS_ECONTEMPLATE ADD (FPERSIONSIGNWAY VARCHAR(10) DEFAULT ' ' NOT NULL );

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