Files
openwaf/dotnet/OpenWaf.Infrastructure/OpenWaf.Infrastructure.csproj
T
Pavlo Ratushnyi 565da4fab5 Add EF Core migrations; make schema strategy explicit
- dotnet-ef 10.0.0 as a local tool manifest, InitialCreate generated against
  PostgreSQL (the provider a real deployment runs) via a design-time factory,
  so migrations never need to boot the edge
- EdgeStateWarmer picks the strategy: migrate for postgres, ensurecreated for
  the sqlite default, none when the operator owns the schema. A migration set
  is provider-shaped SQL and is not applied across providers
- README documents the schema story

Regressions checked: 36 unit + 14 integration tests, scripts/smoke.sh 19/19.
2026-10-01 02:32:12 +02:00

39 lines
1.7 KiB
XML

<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\OpenWaf.Domain\OpenWaf.Domain.csproj" />
<!-- BackgroundService, DI and options come from the shared framework;
an explicit PackageReference for them would be pruned by NuGet. -->
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.0" />
<!-- NU1903: EF's transitive SQLitePCLRaw 2.1.11 carries a known high
severity advisory (GHSA-2m69-gcr7-jv3q). Pinned forward rather than
suppressed, because TreatWarningsAsErrors is on and the audit is the
thing that caught it. -->
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Version="2.1.13" />
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3" Version="2.1.13" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.0" />
<PackageReference Include="MaxMind.GeoIP2" Version="5.2.0" />
</ItemGroup>
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<InternalsVisibleTo Include="OpenWaf.Tests.Unit" />
<InternalsVisibleTo Include="OpenWaf.Tests.Integration" />
</ItemGroup>
</Project>