if not exists(select * from sys.all_columns ac where ac.name = 'ValueSum' and ac.object_id = OBJECT_ID(N'[FIES].[T_FACT_ITEM]'))
ALTER TABLE [FIES].[T_FACT_ITEM] ADD [ValueSum] decimal(31, 10) NULL
GO