LANCommander/LANCommander/Migrations/20230108014549_AdjustKeyColumnLengths.cs
2023-01-07 20:54:24 -06:00

38 lines
1.1 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LANCommander.Migrations
{
public partial class AdjustKeyColumnLengths : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Keys_Games_GameId",
table: "Keys");
migrationBuilder.AddForeignKey(
name: "FK_Keys_Games_GameId",
table: "Keys",
column: "GameId",
principalTable: "Games",
principalColumn: "Id");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Keys_Games_GameId",
table: "Keys");
migrationBuilder.AddForeignKey(
name: "FK_Keys_Games_GameId",
table: "Keys",
column: "GameId",
principalTable: "Games",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
}
}