f7aacdad04
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
59 lines
1.6 KiB
C#
59 lines
1.6 KiB
C#
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");
|
|
}
|
|
}
|
|
}
|