/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MDL_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_META_OBJECTTYPEREF' AND KSQL_COL_NAME ='FENTITYID') 
 ALTER TABLE T_META_OBJECTTYPEREF ADD (FENTITYID VARCHAR(36) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_META_OBJECTTYPEREF' AND KSQL_COL_NAME ='FREFENTITYID') 
 ALTER TABLE T_META_OBJECTTYPEREF ADD (FREFENTITYID VARCHAR(36) DEFAULT ' ' NOT NULL );


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