/**Begin D:\PDM_UPGRADE\PDM1\HRPTMC_table.sql **/

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_RPTQUERYCONFIG' AND KSQL_COL_NAME ='FKSQLCOUNTBATCH') 
 ALTER TABLE T_HRPTMC_RPTQUERYCONFIG ADD (FKSQLCOUNTBATCH INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_RPTQUERYCONFIG' AND KSQL_COL_NAME ='FKSQLSUMBATCH') 
 ALTER TABLE T_HRPTMC_RPTQUERYCONFIG ADD (FKSQLSUMBATCH INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_RPTQUERYCONFIG' AND KSQL_COL_NAME ='FKSQLSUMTHRESHOLD') 
 ALTER TABLE T_HRPTMC_RPTQUERYCONFIG ADD (FKSQLSUMTHRESHOLD INT DEFAULT 0 NOT NULL );

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