mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 20:16:15 +08:00
Implement ContentPartRecord and ContentPartVersionRecord for migration classes, to get rid of the explicit IDs
--HG-- branch : dev
This commit is contained in:
@@ -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")
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user