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