52 lines
1.4 KiB
C#
52 lines
1.4 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|