if not exists (select * FROM sys.syscolumns where name = 'EventProcessed' AND id = object_id(N'dbo.RepositoryHistory'))
	alter table dbo.RepositoryHistory add EventProcessed bit not null constraint DF_RepositoryHistory_EventProcessed default (0);