mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Restored removed ContainerWidget properties.
This commit is contained in:

committed by
Sebastien Ros

parent
129133f6ba
commit
3b95c46f90
@@ -22,7 +22,13 @@ namespace Orchard.Core.Containers {
|
||||
SchemaBuilder.CreateTable("ContainerWidgetPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<int>("ContainerId")
|
||||
.Column<int>("PageSize"));
|
||||
.Column<int>("PageSize")
|
||||
.Column<string>("OrderByProperty", c => c.WithLength(64))
|
||||
.Column<int>("OrderByDirection")
|
||||
.Column<bool>("ApplyFilter")
|
||||
.Column<string>("FilterByProperty", c => c.WithLength(64))
|
||||
.Column<string>("FilterByOperator", c => c.WithLength(4))
|
||||
.Column<string>("FilterByValue", c => c.WithLength(128)));
|
||||
|
||||
SchemaBuilder.CreateTable("ContainablePartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
@@ -95,14 +101,6 @@ namespace Orchard.Core.Containers {
|
||||
table.AddColumn<int>("Position");
|
||||
});
|
||||
|
||||
SchemaBuilder.AlterTable("ContainerWidgetPartRecord", table => {
|
||||
table.DropColumn("OrderByProperty");
|
||||
table.DropColumn("OrderByDirection");
|
||||
table.DropColumn("ApplyFilter");
|
||||
table.DropColumn("FilterByProperty");
|
||||
table.DropColumn("FilterByOperator");
|
||||
table.DropColumn("FilterByValue");
|
||||
});
|
||||
return 5;
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,6 @@
|
||||
namespace Orchard.Core.Containers.Models {
|
||||
public enum OrderByDirection {
|
||||
Ascending,
|
||||
Descending
|
||||
}
|
||||
}
|
@@ -111,6 +111,7 @@
|
||||
<Compile Include="Containers\Handlers\ContainerWidgetPartHandler.cs" />
|
||||
<Compile Include="Containers\Migrations.cs" />
|
||||
<Compile Include="Containers\Models\ContainablePart.cs" />
|
||||
<Compile Include="Containers\Models\OrderByDirection.cs" />
|
||||
<Compile Include="Containers\Models\ContainerPart.cs" />
|
||||
<Compile Include="Common\Shapes.cs" />
|
||||
<Compile Include="Common\Fields\TextField.cs" />
|
||||
|
Reference in New Issue
Block a user