/**Begin D:\lc_guan\PDM_workspace\PDM_UPGRADE\PDM1\HRCS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_APISOURCE' AND KSQL_COL_NAME ='FISNONORIGINAL') 
 ALTER TABLE T_HRCS_APISOURCE ADD (FISNONORIGINAL CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_MSGSUBSCRIBER' AND KSQL_COL_NAME ='FISNONORIGINAL') 
 ALTER TABLE T_HRCS_MSGSUBSCRIBER ADD (FISNONORIGINAL CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_MSGCENTER' AND KSQL_COL_NAME ='FGROUPNUM') 
 ALTER TABLE T_HRCS_MSGCENTER ADD (FGROUPNUM VARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_MSGCENTER' AND KSQL_COL_NAME ='FGROUPSEQ') 
 ALTER TABLE T_HRCS_MSGCENTER ADD (FGROUPSEQ INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_MSGCENTER' AND KSQL_COL_NAME ='FGROUPCOUNT') 
 ALTER TABLE T_HRCS_MSGCENTER ADD (FGROUPCOUNT INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_MSGCENTER' AND KSQL_COL_NAME ='FRETRYTIMES') 
 ALTER TABLE T_HRCS_MSGCENTER ADD (FRETRYTIMES INT DEFAULT 0 NOT NULL );

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