Fixing that NavigationQueryMenuItems and BlogArchives widgets couldn't be export/imported due to the lack of an identity, fixes #3488.

Since the Projections migrations is already kind of a mess
This commit is contained in:
Lombiq 2015-11-30 22:50:19 +01:00
parent dd59d7c385
commit c2dd09af5e
2 changed files with 20 additions and 1 deletions

View File

@ -84,9 +84,10 @@ namespace Orchard.Blogs {
.WithPart("CommonPart") .WithPart("CommonPart")
.WithPart("WidgetPart") .WithPart("WidgetPart")
.WithSetting("Stereotype", "Widget") .WithSetting("Stereotype", "Widget")
.WithPart("IdentityPart")
); );
return 6; return 7;
} }
public int UpdateFrom1() { public int UpdateFrom1() {
@ -133,5 +134,14 @@ namespace Orchard.Blogs {
return 6; return 6;
} }
public int UpdateFrom6() {
ContentDefinitionManager.AlterTypeDefinition("BlogArchives",
cfg => cfg
.WithPart("IdentityPart")
);
return 7;
}
} }
} }

View File

@ -274,5 +274,14 @@ namespace Orchard.Projections {
return 3; return 3;
} }
public int UpdateFrom3() {
ContentDefinitionManager.AlterTypeDefinition("NavigationQueryMenuItem",
cfg => cfg
.WithPart("IdentityPart")
);
return 4;
}
} }
} }