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