using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace w4c_workflows.Data.Migrations
{
///
public partial class AddSagaCompensation : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "CompensationPlanJson",
schema: "workflows",
table: "WorkflowRuns",
type: "jsonb",
nullable: true);
migrationBuilder.AddColumn(
name: "IsCompensation",
schema: "workflows",
table: "TaskRuns",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "NextAttemptAt",
schema: "workflows",
table: "TaskRuns",
type: "timestamp with time zone",
nullable: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CompensationPlanJson",
schema: "workflows",
table: "WorkflowRuns");
migrationBuilder.DropColumn(
name: "IsCompensation",
schema: "workflows",
table: "TaskRuns");
migrationBuilder.DropColumn(
name: "NextAttemptAt",
schema: "workflows",
table: "TaskRuns");
}
}
}