/**Begin D:\pdm\PDM_UPGRADE\PDM1\HRPTMC_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_REPORTCONFIG' AND KSQL_COL_NAME ='FSHOWDATALABEL') 
 ALTER TABLE T_HRPTMC_REPORTCONFIG ADD (FSHOWDATALABEL CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_REPORTCONFIG' AND KSQL_COL_NAME ='FCATEGORYNAME') 
 ALTER TABLE T_HRPTMC_REPORTCONFIG ADD (FCATEGORYNAME NVARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_REPORTCONFIG' AND KSQL_COL_NAME ='FCATEGORYUNIT') 
 ALTER TABLE T_HRPTMC_REPORTCONFIG ADD (FCATEGORYUNIT NVARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_REPORTCONFIG' AND KSQL_COL_NAME ='FVALUENAME') 
 ALTER TABLE T_HRPTMC_REPORTCONFIG ADD (FVALUENAME NVARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_REPORTCONFIG' AND KSQL_COL_NAME ='FVALUEUNIT') 
 ALTER TABLE T_HRPTMC_REPORTCONFIG ADD (FVALUEUNIT NVARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_REPORTCONFIG' AND KSQL_COL_NAME ='FLEGEND') 
 ALTER TABLE T_HRPTMC_REPORTCONFIG ADD (FLEGEND NVARCHAR(2000) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_REPORTCONFIG_L' AND KSQL_COL_NAME ='FCATEGORYNAME') 
 ALTER TABLE T_HRPTMC_REPORTCONFIG_L ADD (FCATEGORYNAME NVARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_REPORTCONFIG_L' AND KSQL_COL_NAME ='FCATEGORYUNIT') 
 ALTER TABLE T_HRPTMC_REPORTCONFIG_L ADD (FCATEGORYUNIT NVARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_REPORTCONFIG_L' AND KSQL_COL_NAME ='FVALUENAME') 
 ALTER TABLE T_HRPTMC_REPORTCONFIG_L ADD (FVALUENAME NVARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_REPORTCONFIG_L' AND KSQL_COL_NAME ='FVALUEUNIT') 
 ALTER TABLE T_HRPTMC_REPORTCONFIG_L ADD (FVALUEUNIT NVARCHAR(100) DEFAULT ' ' NOT NULL );



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