using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Web.Migrations
{
///
public partial class AddConditionalLogicToAnswers : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "NextQuestionId",
table: "ResponseAnswers",
type: "int",
nullable: true);
migrationBuilder.AddColumn(
name: "SkipToEnd",
table: "ResponseAnswers",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "NextQuestionId",
table: "Answers",
type: "int",
nullable: true);
migrationBuilder.AddColumn(
name: "SkipToEnd",
table: "Answers",
type: "bit",
nullable: false,
defaultValue: false);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "NextQuestionId",
table: "ResponseAnswers");
migrationBuilder.DropColumn(
name: "SkipToEnd",
table: "ResponseAnswers");
migrationBuilder.DropColumn(
name: "NextQuestionId",
table: "Answers");
migrationBuilder.DropColumn(
name: "SkipToEnd",
table: "Answers");
}
}
}