mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
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:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -274,5 +274,14 @@ namespace Orchard.Projections {
|
|||||||
|
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int UpdateFrom3() {
|
||||||
|
ContentDefinitionManager.AlterTypeDefinition("NavigationQueryMenuItem",
|
||||||
|
cfg => cfg
|
||||||
|
.WithPart("IdentityPart")
|
||||||
|
);
|
||||||
|
|
||||||
|
return 4;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user