/**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_ASSETSPLITENTRY' AND KSQL_COL_NAME ='FCHANGEMODE') 
 ALTER TABLE T_FA_ASSETSPLITENTRY ADD (FCHANGEMODE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_MERGE_OUT' AND KSQL_COL_NAME ='FOUTCHANGEMODE') 
 ALTER TABLE T_FA_MERGE_OUT ADD (FOUTCHANGEMODE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_MERGE_IN' AND KSQL_COL_NAME ='FINCHANGEMODE') 
 ALTER TABLE T_FA_MERGE_IN ADD (FINCHANGEMODE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_CHANGEFIELDENTRY' AND KSQL_COL_NAME ='FCHANGEMODE') 
 ALTER TABLE T_FA_CHANGEFIELDENTRY ADD (FCHANGEMODE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_CHANGEFIELDENTRY' AND KSQL_COL_NAME ='FDELETEMODE') 
 ALTER TABLE T_FA_CHANGEFIELDENTRY ADD (FDELETEMODE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_CHANGEFIELDENTRY' AND KSQL_COL_NAME ='FADDMODE') 
 ALTER TABLE T_FA_CHANGEFIELDENTRY ADD (FADDMODE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_ASSET_DEVALUE_INFO' AND KSQL_COL_NAME ='FCHANGEMODE') 
 ALTER TABLE T_FA_ASSET_DEVALUE_INFO ADD (FCHANGEMODE BIGINT DEFAULT 0 NOT NULL );

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