From 0ca89b75354a9dbeb0ac06ccc029e38c3547e712 Mon Sep 17 00:00:00 2001 From: Slendy Date: Sat, 12 Feb 2022 03:17:35 -0600 Subject: [PATCH] Accidentally removed field without migrating --- ...12091645_RemoveVisiblePlayersFromReport.cs | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 ProjectLighthouse/Migrations/20220212091645_RemoveVisiblePlayersFromReport.cs diff --git a/ProjectLighthouse/Migrations/20220212091645_RemoveVisiblePlayersFromReport.cs b/ProjectLighthouse/Migrations/20220212091645_RemoveVisiblePlayersFromReport.cs new file mode 100644 index 00000000..220ef994 --- /dev/null +++ b/ProjectLighthouse/Migrations/20220212091645_RemoveVisiblePlayersFromReport.cs @@ -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( + name: "VisiblePlayers", + table: "Reports", + type: "longtext", + nullable: true) + .Annotation("MySql:CharSet", "utf8mb4"); + } + } +}