Change CanReadGdRomUsingSwapDisc to nullable.

This commit is contained in:
2020-07-10 20:29:47 +01:00
parent 7f755a12f9
commit 647ea6f0bf
7 changed files with 2480 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace Aaru.Database.Migrations
{
public partial class MakeCanReadGdRomUsingSwapDiscNullable : Migration
{
protected override void Up(MigrationBuilder migrationBuilder) =>
migrationBuilder.AlterColumn<bool>("CanReadGdRomUsingSwapDisc", "Devices", nullable: true,
oldClrType: typeof(bool), oldType: "INTEGER");
protected override void Down(MigrationBuilder migrationBuilder) =>
migrationBuilder.AlterColumn<bool>("CanReadGdRomUsingSwapDisc", "Devices", "INTEGER", nullable: false,
oldClrType: typeof(bool), oldNullable: true);
}
}