if exists (SELECT * FROM sys.indexes WHERE name = 'PK_ConnectionWikiHistory' AND object_id = OBJECT_ID('dbo.ConnectionHandbookHistory')) and not exists (SELECT * FROM sys.indexes WHERE name = 'PK_ConnectionHandbookHistory' AND object_id = OBJECT_ID('dbo.ConnectionHandbookHistory'))
	exec sp_rename N'dbo.ConnectionHandbookHistory.PK_ConnectionWikiHistory', N'PK_ConnectionHandbookHistory', N'INDEX';