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"); + } + } +}