/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\FMM_table.sql **/

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PMPD_PROJECT_MCC' AND KSQL_COL_NAME ='FNAME') 
ALTER TABLE T_PMPD_PROJECT_MCC ADD (FNAME VARCHAR(50) DEFAULT ' ' NOT NULL);

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PMPD_PROJECT_MCC' AND KSQL_COL_NAME ='FREMARK') 
ALTER TABLE T_PMPD_PROJECT_MCC ADD (FREMARK VARCHAR(255) DEFAULT ' ' NOT NULL);

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PMBD_ORGPROS' AND KSQL_COL_NAME ='FNAME') 
ALTER TABLE T_PMBD_ORGPROS ADD  (FNAME VARCHAR(50) DEFAULT ' ' NOT NULL);

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PMBD_CALENDAR' AND KSQL_COL_NAME ='FNAME') 
ALTER TABLE T_PMBD_CALENDAR ADD (FNAME VARCHAR(50) DEFAULT ' ' NOT NULL);

/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\FMM_table.sql **/