using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace TournamentOrganizer.Migrations { /// public partial class RemoveUnnecessarySlots : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Slot", table: "TeamParticipants"); migrationBuilder.DropColumn( name: "LoserSlot", table: "Matches"); migrationBuilder.DropColumn( name: "WinnerSlot", table: "Matches"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "Slot", table: "TeamParticipants", type: "INTEGER", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "LoserSlot", table: "Matches", type: "INTEGER", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "WinnerSlot", table: "Matches", type: "INTEGER", nullable: false, defaultValue: 0); } } }