Implement ContentPartRecord and ContentPartVersionRecord for migration classes, to get rid of the explicit IDs

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2010-07-07 16:29:58 -07:00
parent 322125a33f
commit d1a4edd349
12 changed files with 30 additions and 26 deletions

View File

@@ -6,7 +6,7 @@ namespace Orchard.Media.DataMigrations {
public int Create() {
//CREATE TABLE Orchard_Media_MediaSettingsRecord (Id INTEGER not null, RootMediaFolder TEXT, primary key (Id));
SchemaBuilder.CreateTable("MediaSettingsRecord", table => table
.Column<int>("Id", column => column.PrimaryKey())
.ContentPartRecord()
.Column<string>("RootMediaFolder")
);