eFormCore/Migrations/20200226182616_MakingNextQuestionIdNullable.cs
using Microsoft.EntityFrameworkCore.Migrations;
namespace Microting.eForm.Migrations
{
public partial class MakingNextQuestionIdNullable : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "NextQuestionId",
table: "options",
nullable: true,
oldClrType: typeof(int));
migrationBuilder.AlterColumn<int>(
name: "NextQuestionId",
table: "option_versions",
nullable: true,
oldClrType: typeof(int));
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "NextQuestionId",
table: "options",
nullable: false,
oldClrType: typeof(int),
oldNullable: true);
migrationBuilder.AlterColumn<int>(
name: "NextQuestionId",
table: "option_versions",
nullable: false,
oldClrType: typeof(int),
oldNullable: true);
}
}
}