if not exists (select * from sys.syscolumns where name = 'EventProcessed' and id = object_id(N'dbo.GroupInfoHistory'))
    alter table dbo.GroupInfoHistory add EventProcessed bit not null constraint DF_GroupInfoHistory_EventProcessed default (0);