From 5d9c7d90689ff46b5a75df5ebfd3e812afc317e0 Mon Sep 17 00:00:00 2001 From: Shannon Date: Fri, 24 Oct 2014 17:15:38 +1000 Subject: [PATCH] adds note --- .../TargetVersionSixTwoZero/AdditionalIndexesAndKeys.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSixTwoZero/AdditionalIndexesAndKeys.cs b/src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSixTwoZero/AdditionalIndexesAndKeys.cs index 446c35d3ad..198e8307eb 100644 --- a/src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSixTwoZero/AdditionalIndexesAndKeys.cs +++ b/src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSixTwoZero/AdditionalIndexesAndKeys.cs @@ -42,6 +42,12 @@ namespace Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSixTwoZero Create.Index("IX_cmsDocument_newest").OnTable("cmsDocument").OnColumn("newest").Ascending().WithOptions().NonClustered(); } + //TODO: We need to fix this for SQL Azure since it does not let you drop any clustered indexes + // Issue: http://issues.umbraco.org/issue/U4-5673 + // Some work around notes: + // http://stackoverflow.com/questions/15872347/alter-clustered-index-column + // https://social.msdn.microsoft.com/Forums/azure/en-US/5cc4b302-fa42-4c62-956a-bbf79dbbd040/changing-clustered-index-in-azure?forum=ssdsgetstarted + //we want to drop the umbracoUserLogins_Index index since it is named incorrectly and then re-create it so // it follows the standard naming convention if (dbIndexes.Any(x => x.IndexName.InvariantEquals("umbracoUserLogins_Index")))