mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Update Lists migrations for Autoroute
--HG-- branch : autoroute
This commit is contained in:
@@ -8,13 +8,14 @@ namespace Orchard.Lists {
|
||||
ContentDefinitionManager.AlterTypeDefinition("List",
|
||||
cfg=>cfg
|
||||
.WithPart("CommonPart")
|
||||
.WithPart("RoutePart")
|
||||
.WithPart("TitlePart")
|
||||
.WithPart("AutoroutePart")
|
||||
.WithPart("ContainerPart")
|
||||
.WithPart("MenuPart")
|
||||
.WithPart("AdminMenuPart", p => p.WithSetting("AdminMenuPartTypeSettings.DefaultPosition", "2"))
|
||||
.Creatable());
|
||||
|
||||
return 3;
|
||||
return 4;
|
||||
}
|
||||
|
||||
public int UpdateFrom1() {
|
||||
@@ -27,5 +28,18 @@ namespace Orchard.Lists {
|
||||
return 3;
|
||||
}
|
||||
|
||||
public int UpdateFrom3() {
|
||||
|
||||
// TODO: (PH:Autoroute) Copy paths, routes, etc.
|
||||
|
||||
ContentDefinitionManager.AlterTypeDefinition("List",
|
||||
cfg => cfg
|
||||
.RemovePart("RoutePart")
|
||||
.WithPart("TitlePart")
|
||||
.WithPart("AutoroutePart"));
|
||||
|
||||
return 4;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user