IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_CARD_REAL' AND KSQL_COL_NAME ='FMGTDEPTID')
ALTER TABLE T_FA_CARD_REAL ADD (FMGTDEPTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_ASSETINFOADDENTRY' AND KSQL_COL_NAME ='FMGTDEPTID')
ALTER TABLE T_FA_ASSETINFOADDENTRY ADD (FMGTDEPTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_ASSETSPLITENTRY_D' AND KSQL_COL_NAME ='FMGTDEPTID')
ALTER TABLE T_FA_ASSETSPLITENTRY_D ADD (FMGTDEPTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_CHANGE_APPLY_ENTRY' AND KSQL_COL_NAME ='FAFTMGTDEPTID')
ALTER TABLE T_FA_CHANGE_APPLY_ENTRY ADD (FAFTMGTDEPTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_CHANGE_APPLY_ENTRY' AND KSQL_COL_NAME ='FBEFMGTDEPTID')
ALTER TABLE T_FA_CHANGE_APPLY_ENTRY ADD (FBEFMGTDEPTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_DISPTBILLENTRY' AND KSQL_COL_NAME ='FINMGTDEPTID')
ALTER TABLE T_FA_DISPTBILLENTRY ADD (FINMGTDEPTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_PURCHASEBILL' AND KSQL_COL_NAME ='FMGTDEPTID')
ALTER TABLE T_FA_PURCHASEBILL ADD (FMGTDEPTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_CHANGEBILLMAINENTRY' AND KSQL_COL_NAME ='FAFTMGTDEPTID')
ALTER TABLE T_FA_CHANGEBILLMAINENTRY ADD (FAFTMGTDEPTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_CHANGEBILLMAINENTRY' AND KSQL_COL_NAME ='FBEFMGTDEPTID')
ALTER TABLE T_FA_CHANGEBILLMAINENTRY ADD (FBEFMGTDEPTID BIGINT DEFAULT 0 NOT NULL );