/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TPO_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TPO_TAXITEMRATE' AND KSQL_COL_NAME ='FGENERAL') 
 ALTER TABLE T_TPO_TAXITEMRATE ADD (FGENERAL CHAR(1) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TPO_YEARITEM_DETAIL' AND KSQL_COL_NAME ='FENTITY') 
 ALTER TABLE T_TPO_YEARITEM_DETAIL ADD (FENTITY VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TPO_YEARITEM_DETAIL' AND KSQL_COL_NAME ='FFIELD') 
 ALTER TABLE T_TPO_YEARITEM_DETAIL ADD (FFIELD VARCHAR(50) DEFAULT ' ' NOT NULL );

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