PublishLaterPart should be attachable

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-07-23 16:53:28 -07:00
parent c1707a46ad
commit bdcaca8d63

View File

@@ -2,6 +2,7 @@
using Orchard.ContentManagement.Drivers;
using Orchard.ContentManagement.MetaData;
using Orchard.ContentManagement.MetaData.Builders;
using Orchard.Core.Contents.Extensions;
using Orchard.Core.PublishLater.Models;
using Orchard.Data.Migration;
@@ -15,5 +16,9 @@ namespace Orchard.Core.PublishLater.DataMigrations {
}));
return 1;
}
public int UpdateFrom1() {
ContentDefinitionManager.AlterPartDefinition("PublishLaterPart", builder => builder.Attachable());
return 2;
}
}
}