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