/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SRC_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_PROJECT_B' AND KSQL_COL_NAME ='FISSOURCESUPPLIER') 
 ALTER TABLE T_SRC_PROJECT_B ADD (FISSOURCESUPPLIER CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_PROJECTEND' AND KSQL_COL_NAME ='FBIZTYPE') 
 ALTER TABLE T_SRC_PROJECTEND ADD (FBIZTYPE CHAR(1) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_PURLISTENTRY_F' AND KSQL_COL_NAME ='FHISTORYTAXPRICE') 
 ALTER TABLE T_SRC_PURLISTENTRY_F ADD (FHISTORYTAXPRICE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_MEMBERENTRY' AND KSQL_COL_NAME ='FPROJECTID') 
 ALTER TABLE T_SRC_MEMBERENTRY ADD (FPROJECTID BIGINT DEFAULT 0 NOT NULL );

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