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:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user