Match management view

This commit is contained in:
2026-05-06 16:21:50 +02:00
parent c70b9c554e
commit 5a51a8265d
15 changed files with 2554 additions and 7 deletions
@@ -0,0 +1,51 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TournamentOrganizer.Migrations
{
/// <inheritdoc />
public partial class RemoveUnnecessarySlots : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Slot",
table: "TeamParticipants");
migrationBuilder.DropColumn(
name: "LoserSlot",
table: "Matches");
migrationBuilder.DropColumn(
name: "WinnerSlot",
table: "Matches");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "Slot",
table: "TeamParticipants",
type: "INTEGER",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "LoserSlot",
table: "Matches",
type: "INTEGER",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "WinnerSlot",
table: "Matches",
type: "INTEGER",
nullable: false,
defaultValue: 0);
}
}
}