mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Cleaned up migration file in Orchard.Recipes.
This commit is contained in:
@@ -3,12 +3,6 @@
|
||||
namespace Orchard.Recipes {
|
||||
public class Migrations : DataMigrationImpl {
|
||||
public int Create() {
|
||||
//SchemaBuilder.CreateTable("RecipeResultRecord", table => table
|
||||
// .Column<int>("Id", c => c.PrimaryKey().Identity())
|
||||
// .Column<string>("ExecutionId", c => c.WithLength(128).Unique().NotNull())
|
||||
// .Column<bool>("IsCompleted", c => c.NotNull())
|
||||
//);
|
||||
|
||||
SchemaBuilder.CreateTable("RecipeStepResultRecord", table => table
|
||||
.Column<int>("Id", c => c.PrimaryKey().Identity())
|
||||
.Column<string>("ExecutionId", c => c.WithLength(128).NotNull())
|
||||
@@ -18,14 +12,11 @@ namespace Orchard.Recipes {
|
||||
.Column<string>("ErrorMessage", c => c.Unlimited().Nullable())
|
||||
);
|
||||
|
||||
SchemaBuilder.AlterTable("RecipeStepResultRecord", table => table
|
||||
.CreateIndex("IDX_RecipeStepResultRecord_ExecutionId", "ExecutionId")
|
||||
);
|
||||
|
||||
SchemaBuilder.AlterTable("RecipeStepResultRecord", table => table
|
||||
.CreateIndex("IDX_RecipeStepResultRecord_ExecutionId_StepName", "ExecutionId", "StepName")
|
||||
);
|
||||
|
||||
SchemaBuilder.AlterTable("RecipeStepResultRecord", table => {
|
||||
table.CreateIndex("IDX_RecipeStepResultRecord_ExecutionId", "ExecutionId");
|
||||
table.CreateIndex("IDX_RecipeStepResultRecord_ExecutionId_StepName", "ExecutionId", "StepName");
|
||||
});
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user