Files
Orchard/src/Orchard.Web/Modules/Orchard.Workflows/Migrations.cs
Sebastien Ros 88f316a557 Incremental work on Workflows
--HG--
branch : 1.x
extra : rebase_source : 5ce381991d6e285619ad926bf527f6f5db1f425b
2012-11-29 11:06:45 -08:00

48 lines
1.8 KiB
C#

using Orchard.Data.Migration;
namespace Orchard.Workflows {
public class Migrations : DataMigrationImpl {
public int Create() {
// Creating table TransitionRecord
SchemaBuilder.CreateTable("TransitionRecord", table => table
.Column<int>("Id", column => column.PrimaryKey().Identity())
.Column<string>("SourceEndpoint")
.Column<string>("DestinationEndpoint")
.Column<int>("SourceActivityRecord_id")
.Column<int>("DestinationActivityRecord_id")
.Column<int>("WorkflowDefinitionRecord_id")
);
// Creating table WorkflowRecord
SchemaBuilder.CreateTable("WorkflowRecord", table => table
.Column<int>("Id", column => column.PrimaryKey().Identity())
.Column<string>("State", column => column.Unlimited())
.Column<int>("WorkflowDefinitionRecord_id")
);
// Creating table WorkflowDefinitionRecord
SchemaBuilder.CreateTable("WorkflowDefinitionRecord", table => table
.Column<int>("Id", column => column.PrimaryKey().Identity())
.Column<bool>("Enabled")
.Column<string>("Name", column => column.WithLength(1024))
);
// Creating table AwaitingActivityRecord
SchemaBuilder.CreateTable("AwaitingActivityRecord", table => table
.Column<int>("Id", column => column.PrimaryKey().Identity())
.Column<int>("ActivityRecord_id")
);
// Creating table ActivityRecord
SchemaBuilder.CreateTable("ActivityRecord", table => table
.Column<int>("Id", column => column.PrimaryKey().Identity())
.Column<string>("Type")
.Column<string>("Parameters")
.Column<int>("WorkflowDefinitionRecord_id")
);
return 1;
}
}
}