Cleaned up migration file in Orchard.Recipes.

This commit is contained in:
Daniel Stolt
2015-07-14 21:00:55 +01:00
parent 6c48766f54
commit dbe7697803

View File

@@ -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;
}
}