/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\EB_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_COSTTYPE' AND KSQL_COL_NAME IN ('FACCOUNT')) 
 ALTER TABLE T_EB_COSTTYPE ADD (FACCOUNT NVARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_COSTTYPE' AND KSQL_COL_NAME IN ('FACCOUNTTXT')) 
 ALTER TABLE T_EB_COSTTYPE ADD (FACCOUNTTXT NVARCHAR(510) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_COSTTYPE' AND KSQL_COL_NAME IN ('FACCOUNTTXT_TAG')) 
 ALTER TABLE T_EB_COSTTYPE ADD (FACCOUNTTXT_TAG NCLOB );

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