CmsKit - Remove CoverImageUrl from BlogPost

pull/7596/head
enisn 5 years ago
parent 69c42890a4
commit 42c72d712e

@ -1,11 +1,9 @@
namespace Volo.CmsKit.Blogs
{
public class BlogPostConsts
public static class BlogPostConsts
{
public static int MaxTitleLength { get; set; } = 256;
public static int MaxCoverImageUrlLength { get; set; } = 2048;
public static int MaxUrlSlugLength { get; set; } = 256;
public static int MinUrlSlugLength { get; set; } = 2;

@ -229,8 +229,6 @@ namespace Volo.CmsKit.EntityFrameworkCore
b.Property(p => p.UrlSlug).IsRequired().HasMaxLength(BlogPostConsts.MaxUrlSlugLength);
b.Property(p => p.CoverImageUrl).HasMaxLength(BlogPostConsts.MaxCoverImageUrlLength);
b.HasIndex(x => x.UrlSlug);
});
}

Loading…
Cancel
Save