diff --git a/src/Orchard.Web/Modules/Orchard.Search/Migrations.cs b/src/Orchard.Web/Modules/Orchard.Search/Migrations.cs index 3af8b6d02..383c13214 100644 --- a/src/Orchard.Web/Modules/Orchard.Search/Migrations.cs +++ b/src/Orchard.Web/Modules/Orchard.Search/Migrations.cs @@ -13,10 +13,11 @@ namespace Orchard.Search { .WithPart("SearchFormPart") .WithPart("CommonPart") .WithPart("WidgetPart") + .WithPart("IdentityPart") .WithSetting("Stereotype", "Widget") ); - return 2; + return 3; } public int UpdateFrom1() { @@ -26,6 +27,13 @@ namespace Orchard.Search { return 2; } + + public int UpdateFrom2() { + ContentDefinitionManager.AlterTypeDefinition("SearchForm", + cfg => cfg.WithPart("IdentityPart")); + + return 3; + } } [OrchardFeature("Orchard.Search.MediaLibrary")]