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

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_ANALYSISOBJECT' AND KSQL_COL_NAME ='FSIDEBAR') 
 ALTER TABLE T_HRPTMC_ANALYSISOBJECT ADD (FSIDEBAR VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_ANALYSISOBJECT' AND KSQL_COL_NAME ='FPIVOTDIM') 
 ALTER TABLE T_HRPTMC_ANALYSISOBJECT ADD (FPIVOTDIM VARCHAR(200) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_ANALYSISOBJECT' AND KSQL_COL_NAME ='FPIVOTDIMVAL') 
 ALTER TABLE T_HRPTMC_ANALYSISOBJECT ADD (FPIVOTDIMVAL NCLOB );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRPTMC_ANALYSISOBJECT' AND KSQL_COL_NAME ='FPIVOTINDEX') 
 ALTER TABLE T_HRPTMC_ANALYSISOBJECT ADD (FPIVOTINDEX NCLOB );

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