--HG--
branch : dev
This commit is contained in:
Jonathan Wall
2010-10-15 18:04:45 -07:00
2 changed files with 11 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Data;
using Orchard.Blogs.Models;
using Orchard.ContentManagement.Drivers;
using Orchard.ContentManagement.MetaData;
@@ -95,5 +96,13 @@ namespace Orchard.Blogs {
cfg => cfg.WithPart("BlogPagerPart"));
return 6;
}
public int UpdateFrom6() {
SchemaBuilder.AlterTable("BlogPartRecord", table => table
.AlterColumn("Description", c => c.WithType(DbType.String).Unlimited())
);
return 7;
}
}
}

View File

@@ -1,7 +1,9 @@
using Orchard.ContentManagement.Records;
using Orchard.Data.Conventions;
namespace Orchard.Blogs.Models {
public class BlogPartRecord : ContentPartRecord {
[StringLengthMax]
public virtual string Description { get; set; }
public virtual int PostCount { get; set; }
}