/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\HPDI_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HPDI_FIELDRULE_L' AND KSQL_COL_NAME ='FFIELDNAME')
 ALTER TABLE T_HPDI_FIELDRULE_L ADD (FFIELDNAME NVARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HPDI_FIELDRULE' AND KSQL_COL_NAME ='FFIELDNAME')
 ALTER TABLE T_HPDI_FIELDRULE ADD (FFIELDNAME NVARCHAR(100) DEFAULT ' ' NOT NULL );

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