Commit eaf21e28 authored by Eric Dieckman's avatar Eric Dieckman
Browse files

Add hostname to firewall

parent 08f17dea
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -18,6 +18,9 @@ public class PaloAltoFirewallEntityTypeConfiguration : IEntityTypeConfiguration<

        builder.Property(e => e.Name)
            .HasMaxLength(100);

        builder.Property(e => e.Hostname)
            .HasMaxLength(255);
    }
}
+2 −0
Original line number Diff line number Diff line
@@ -11,11 +11,13 @@
  <ItemGroup>
    <None Remove="scripts\20251023141300_InitialDatabase.sql" />
    <None Remove="scripts\20251027152500_InitialDataLoad.sql" />
    <None Remove="scripts\20251208101000_AddHostFirewall.sql" />
  </ItemGroup>

  <ItemGroup>
    <EmbeddedResource Include="scripts\20251023141300_InitialDatabase.sql" />
    <EmbeddedResource Include="scripts\20251027152500_InitialDataLoad.sql" />
    <EmbeddedResource Include="scripts\20251208101000_AddHostFirewall.sql" />
  </ItemGroup>

  <ItemGroup>
+1 −0
Original line number Diff line number Diff line
ALTER TABLE pa_firewalls ADD hostname varchar(255) NULL;
+2 −0
Original line number Diff line number Diff line
@@ -14,6 +14,8 @@ public class PaloAltoFirewall : ICreatedAt, IUpdatedAt, IAuditableEntity

    public string? Name { get; set; }

    public string? Hostname { get; set; }

    public string? Notes { get; set; } = string.Empty;

    [JsonIgnore]