mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 05:23:33 +08:00
24 lines
925 B
C#
24 lines
925 B
C#
![]() |
using System;
|
|||
|
using Orchard.ContentManagement.MetaData;
|
|||
|
using Orchard.Core.Contents.Extensions;
|
|||
|
using Orchard.Data.Migration;
|
|||
|
|
|||
|
namespace Orchard.Core.Containers {
|
|||
|
public class Migrations : DataMigrationImpl {
|
|||
|
public int Create() {
|
|||
|
SchemaBuilder.CreateTable("ContainerPartRecord",
|
|||
|
table => table
|
|||
|
.ContentPartRecord()
|
|||
|
.Column<bool>("Paginated")
|
|||
|
.Column<int>("PageSize")
|
|||
|
.Column<string>("OrderByProperty")
|
|||
|
.Column<int>("OrderByDirection"));
|
|||
|
|
|||
|
ContentDefinitionManager.AlterPartDefinition("ContainerPart", builder => builder.Attachable());
|
|||
|
ContentDefinitionManager.AlterPartDefinition("ContainablePart", builder => builder.Attachable());
|
|||
|
|
|||
|
return 1;
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|