/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\FA_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_DEPRE' AND KSQL_COL_NAME ='FCURRENCYID') 
 ALTER TABLE T_FA_DEPRE ADD (FCURRENCYID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_ASSET_DEVALUE' AND KSQL_COL_NAME ='FCURRENCYID') 
 ALTER TABLE T_FA_ASSET_DEVALUE ADD (FCURRENCYID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_CLRBILLENTRY_D' AND KSQL_COL_NAME ='FASSETNUMBER') 
 ALTER TABLE T_FA_CLRBILLENTRY_D ADD (FASSETNUMBER VARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_CLEARRSBILLENTRY' AND KSQL_COL_NAME ='FBIZDATE') 
 ALTER TABLE T_FA_CLEARRSBILLENTRY ADD (FBIZDATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_CLEARRSBILLENTRY' AND KSQL_COL_NAME ='FASSETNUMBER') 
 ALTER TABLE T_FA_CLEARRSBILLENTRY ADD (FASSETNUMBER VARCHAR(100) DEFAULT ' ' NOT NULL );

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