37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ManagerService.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class MakeIsSlidingPuzzleNullable : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "IsSlidingPuzzle",
|
|
table: "QuizQuestions",
|
|
type: "boolean",
|
|
nullable: true,
|
|
oldClrType: typeof(bool),
|
|
oldType: "boolean");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "IsSlidingPuzzle",
|
|
table: "QuizQuestions",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "boolean",
|
|
oldNullable: true);
|
|
}
|
|
}
|
|
}
|