Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ protected virtual void DefinePlan()
To<V_18_0_0.AddElementContainerPermissions>("{D00BB11A-DDF8-47C4-B58E-150C123BB3BB}");
To<V_18_0_0.MigrateSingleBlockList>("{74332C49-B279-4945-8943-F8F00B1F5949}");
To<V_18_0_0.AddElementSectionForAdmins>("{6FE4656E-8B8D-452F-AE2A-438A615B61BC}");

// To 18.1.0
// Re-run of the 17.6 index migration: it sits earlier in the chain than the final 18.0 state,
// so sites already on 18.0.x skipped it. Idempotent, so other upgrade paths are unaffected.
To<V_18_1_0.AddContentTypeIdIndexForContent>("{AE533AF6-4611-4E25-AA4D-89AEFA468E79}");
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.

namespace Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_18_1_0;

/// <summary>
/// Re-applies the <see cref="V_17_6_0.AddContentTypeIdIndexForContent"/> migration for sites upgrading
/// from an 18.0.x release.
/// </summary>
/// <remarks>
/// The original migration was added for 17.6 and merged up, so it sits earlier in the plan than the
/// final 18.0 migration state. Sites already on 18.0.x have moved past that point in the chain and would
/// therefore never run it. Running it again here ensures they also gain the index. The operation is
/// idempotent (guarded by <c>IndexExists</c>), so sites that reached it via the 17.6 path are unaffected.
/// </remarks>
public class AddContentTypeIdIndexForContent : V_17_6_0.AddContentTypeIdIndexForContent
{
/// <summary>
/// Initializes a new instance of the <see cref="AddContentTypeIdIndexForContent"/> class.
/// </summary>
/// <param name="context">The migration context.</param>
public AddContentTypeIdIndexForContent(IMigrationContext context)
: base(context)
{
}
}
Loading