fix: fixed model issues

Game and Tournament forgot to add setters to group count and advancement numbers to stage 1 in multistage tournaments

Participant apparently accidentally deleted the composite key in TeamParticipant
This commit is contained in:
2026-04-09 12:08:52 +02:00
parent 929dc09274
commit f7aacdad04
8 changed files with 434 additions and 5 deletions
@@ -0,0 +1,58 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TournamentOrganizer.Migrations
{
/// <inheritdoc />
public partial class FixS1Customizers : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "S1GroupAdvances",
table: "Tournaments",
type: "INTEGER",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "S1Groups",
table: "Tournaments",
type: "INTEGER",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "S1GroupAdvances",
table: "Games",
type: "INTEGER",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "S1Groups",
table: "Games",
type: "INTEGER",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "S1GroupAdvances",
table: "Tournaments");
migrationBuilder.DropColumn(
name: "S1Groups",
table: "Tournaments");
migrationBuilder.DropColumn(
name: "S1GroupAdvances",
table: "Games");
migrationBuilder.DropColumn(
name: "S1Groups",
table: "Games");
}
}
}