mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
PublishLaterPart should be attachable
--HG-- branch : dev
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
using Orchard.ContentManagement.Drivers;
|
using Orchard.ContentManagement.Drivers;
|
||||||
using Orchard.ContentManagement.MetaData;
|
using Orchard.ContentManagement.MetaData;
|
||||||
using Orchard.ContentManagement.MetaData.Builders;
|
using Orchard.ContentManagement.MetaData.Builders;
|
||||||
|
using Orchard.Core.Contents.Extensions;
|
||||||
using Orchard.Core.PublishLater.Models;
|
using Orchard.Core.PublishLater.Models;
|
||||||
using Orchard.Data.Migration;
|
using Orchard.Data.Migration;
|
||||||
|
|
||||||
@@ -15,5 +16,9 @@ namespace Orchard.Core.PublishLater.DataMigrations {
|
|||||||
}));
|
}));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
public int UpdateFrom1() {
|
||||||
|
ContentDefinitionManager.AlterPartDefinition("PublishLaterPart", builder => builder.Attachable());
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user