/**Begin D:\softwaresetup\PDM_UPGRADE\PDM1\FPM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_TEMPLATE_EXPAND' AND KSQL_COL_NAME IN ('FENTRYID')) 
 ALTER TABLE T_FPM_TEMPLATE_EXPAND ADD (FENTRYID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_TEMPLATE_MEMBER' AND KSQL_COL_NAME IN ('FENTRYID')) 
 ALTER TABLE T_FPM_TEMPLATE_MEMBER ADD (FENTRYID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_TEMPLATE_LAYOUTMEM' AND KSQL_COL_NAME IN ('FENTRYID')) 
 ALTER TABLE T_FPM_TEMPLATE_LAYOUTMEM ADD (FENTRYID BIGINT DEFAULT 0 NOT NULL );

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