if exists (select * FROM sys.syscolumns where name = 'Icon' AND id = object_id(N'dbo.RepositoryHistory')) and not exists (select * FROM sys.syscolumns where name = 'ImageBytes' AND id = object_id(N'dbo.RepositoryHistory'))
	exec sp_rename N'dbo.RepositoryHistory.Icon', N'ImageBytes', 'COLUMN';