/**Begin D:\PDM_UPGRADE\PDM1\FPM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_APPROVEDPLANQUOTA' AND KSQL_COL_NAME IN ('FMODIFYTIME')) 
 ALTER TABLE T_FPM_APPROVEDPLANQUOTA ADD (FMODIFYTIME DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_APPROVEDPLANQUOTA' AND KSQL_COL_NAME IN ('FCREATETIME')) 
 ALTER TABLE T_FPM_APPROVEDPLANQUOTA ADD (FCREATETIME DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_APPROVEDPLANQUOTA' AND KSQL_COL_NAME IN ('FMODIFIERID')) 
 ALTER TABLE T_FPM_APPROVEDPLANQUOTA ADD (FMODIFIERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_APPROVEDPLANQUOTA' AND KSQL_COL_NAME IN ('FAUDITDATE')) 
 ALTER TABLE T_FPM_APPROVEDPLANQUOTA ADD (FAUDITDATE DATETIME );

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