/**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_ASSET_DEVALUE_INFO' AND KSQL_COL_NAME ='FREALCARDMASTERID') 
 ALTER TABLE T_FA_ASSET_DEVALUE_INFO ADD (FREALCARDMASTERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_ASSETSPLITENTRY' AND KSQL_COL_NAME ='FREALCARDMASTERID') 
 ALTER TABLE T_FA_ASSETSPLITENTRY ADD (FREALCARDMASTERID 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 ='FREALCARDMASTERID') 
 ALTER TABLE T_FA_CLRBILLENTRY_D ADD (FREALCARDMASTERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_CHANGEFIELDENTRY' AND KSQL_COL_NAME ='FREALCARDMASTERID') 
 ALTER TABLE T_FA_CHANGEFIELDENTRY ADD (FREALCARDMASTERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_CARD_FIN' AND KSQL_COL_NAME ='FREALCARDMASTERID') 
 ALTER TABLE T_FA_CARD_FIN ADD (FREALCARDMASTERID BIGINT DEFAULT 0 NOT NULL );

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