Accidentally removed field without migrating

This commit is contained in:
Slendy 2022-02-12 03:17:35 -06:00
commit 0ca89b7535

View file

@ -0,0 +1,30 @@
using LBPUnion.ProjectLighthouse;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ProjectLighthouse.Migrations
{
[DbContext(typeof(Database))]
[Migration("20220212091645_RemoveVisiblePlayersFromReport")]
public partial class RemoveVisiblePlayersFromReport : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "VisiblePlayers",
table: "Reports");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "VisiblePlayers",
table: "Reports",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
}
}
}