Remove deprecated server HTTP options

save-path-regex
Pat Hartl 2023-11-05 15:08:09 -06:00
parent 63ae3a4f2a
commit d111be9828
4 changed files with 1732 additions and 11 deletions

View File

@ -17,9 +17,6 @@ namespace LANCommander.Data.Models
public bool Autostart { get; set; }
public int AutostartDelay { get; set; }
public bool EnableHTTP { get; set; }
public string HTTPRootPath { get; set; }
public Guid? GameId { get; set; }
[JsonIgnore]
[ForeignKey(nameof(GameId))]

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,40 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LANCommander.Migrations
{
/// <inheritdoc />
public partial class RemoveDeprecatedServerHttpOptions : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EnableHTTP",
table: "Servers");
migrationBuilder.DropColumn(
name: "HTTPRootPath",
table: "Servers");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "EnableHTTP",
table: "Servers",
type: "INTEGER",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<string>(
name: "HTTPRootPath",
table: "Servers",
type: "TEXT",
nullable: false,
defaultValue: "");
}
}
}

View File

@ -16,7 +16,7 @@ namespace LANCommander.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "7.0.11")
.HasAnnotation("ProductVersion", "7.0.13")
.HasAnnotation("Proxies:ChangeTracking", false)
.HasAnnotation("Proxies:CheckEquality", false)
.HasAnnotation("Proxies:LazyLoading", true);
@ -749,16 +749,9 @@ namespace LANCommander.Migrations
b.Property<DateTime>("CreatedOn")
.HasColumnType("TEXT");
b.Property<bool>("EnableHTTP")
.HasColumnType("INTEGER");
b.Property<Guid?>("GameId")
.HasColumnType("TEXT");
b.Property<string>("HTTPRootPath")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT");