/**Begin D:\PDM_UPGRADE\PDM1\FPM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_REPORTPLANSUM' AND KSQL_COL_NAME IN ('FSUBSUMPLANNUM'))
ALTER TABLE T_FPM_REPORTPLANSUM ADD (FSUBSUMPLANNUM INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_REPORTPLANSUM' AND KSQL_COL_NAME IN ('FREPORTEDPLANNUM'))
ALTER TABLE T_FPM_REPORTPLANSUM ADD (FREPORTEDPLANNUM INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_REPORTPLANSUM' AND KSQL_COL_NAME IN ('FSUBPLANNUM'))
ALTER TABLE T_FPM_REPORTPLANSUM ADD (FSUBPLANNUM INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_REPORTPLANSUM' AND KSQL_COL_NAME IN ('FUNREPORTEDPLANNUM'))
ALTER TABLE T_FPM_REPORTPLANSUM ADD (FUNREPORTEDPLANNUM INT DEFAULT 0 NOT NULL );

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