/**Begin C:\Users\rd_jin_gu\Documents\work\PDM_UPGRADE\PDM1\HRPTMC_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_FILTER' AND KSQL_COL_NAME ='FTEXTDEFAULTVALUE') 
 ALTER TABLE T_HRPTMC_FILTER ADD (FTEXTDEFAULTVALUE VARCHAR(10) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_FILTER' AND KSQL_COL_NAME ='FTEXTFILTERRANGE') 
 ALTER TABLE T_HRPTMC_FILTER ADD (FTEXTFILTERRANGE VARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_FILTER' AND KSQL_COL_NAME ='FDATEFILTERTYPE') 
 ALTER TABLE T_HRPTMC_FILTER ADD (FDATEFILTERTYPE VARCHAR(2) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_FILTER' AND KSQL_COL_NAME ='FDATEFILTERTEXT') 
 ALTER TABLE T_HRPTMC_FILTER ADD (FDATEFILTERTEXT VARCHAR(10) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_FILTER' AND KSQL_COL_NAME ='FFILTERSTARTDATE') 
 ALTER TABLE T_HRPTMC_FILTER ADD (FFILTERSTARTDATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_FILTER' AND KSQL_COL_NAME ='FFILTERENDDATE') 
 ALTER TABLE T_HRPTMC_FILTER ADD (FFILTERENDDATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_FILTER' AND KSQL_COL_NAME ='FBDDEFAULTVALUE') 
 ALTER TABLE T_HRPTMC_FILTER ADD (FBDDEFAULTVALUE NCLOB );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_FILTER' AND KSQL_COL_NAME ='FBDFILTERRANGE') 
 ALTER TABLE T_HRPTMC_FILTER ADD (FBDFILTERRANGE NCLOB );

/**End C:\Users\rd_jin_gu\Documents\work\PDM_UPGRADE\PDM1\HRPTMC_table.sql **/
