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