From 7a3d4d3dd51dbca58f6901715d44b4546c786f1f Mon Sep 17 00:00:00 2001 From: Musa Misto <64855513+MusaMisto@users.noreply.github.com> Date: Mon, 31 Aug 2026 15:23:21 +0300 Subject: [PATCH] fix(deps): move the PgSql and MsSql EF providers onto the EF Core 8 line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 8.0.1 image CrashLoopBackOffs at startup: System.TypeLoadException: Could not load type 'Microsoft.EntityFrameworkCore.Storage.IRelationalValueBufferFactoryFactory' from assembly 'Microsoft.EntityFrameworkCore.Relational, Version=8.0.24.0' That type was removed in EF Core 7. The projects moved to net8.0 in d48988f (2026-02-12) and most of the EF stack came with them — Design 8.0.24, Pomelo 8.0.3, EFCore.NamingConventions 8.0.3 — but two providers were left on the EF Core 5 line and call into an API that no longer exists: SW.Mtm.PgSql Npgsql.EntityFrameworkCore.PostgreSQL 5.0.10 -> 8.0.11 SW.Mtm.MsSql Microsoft.EntityFrameworkCore.SqlServer 5.0.11 -> 8.0.24 SqlServer is pinned to 8.0.24 so it matches the already-pinned Microsoft.EntityFrameworkCore.Design and keeps Relational on one patch level. Npgsql 8.0.11 is the newest 8.0.x. This blocked every deployment, not just playground: all six live releases (funride, kwickbox, tamweelna x staging/production) run dbType=PgSql. They are unaffected today only because they still run the 6.0.8 image, which predates the net8.0 migration. NOT taking Dependabot #110 (Npgsql -> 9.0.4) or #111 (Pomelo -> 9.0.0): both are EF Core 9 against an EF Core 8 app, the same major-version mismatch as #117/#118. Verified against a real PostgreSQL 16 container, same env for both images: ghcr.io/simplify9/mtm:8.0.1 -> TypeLoadException, process dies this build -> migrations run, 9 tables created in the mtm schema incl. _ef_migrations_history, app serves HTTP, zero errors in the log Unit tests pass (1/1) under the dotnet/sdk:8.0 image. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01VHkpqv6dB6wjALyFe9ocMU --- SW.Mtm.MsSql/SW.Mtm.MsSql.csproj | 2 +- SW.Mtm.PgSql/SW.Mtm.PgSql.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SW.Mtm.MsSql/SW.Mtm.MsSql.csproj b/SW.Mtm.MsSql/SW.Mtm.MsSql.csproj index 97b57f0..1d03b35 100644 --- a/SW.Mtm.MsSql/SW.Mtm.MsSql.csproj +++ b/SW.Mtm.MsSql/SW.Mtm.MsSql.csproj @@ -4,7 +4,7 @@ net8.0 - + diff --git a/SW.Mtm.PgSql/SW.Mtm.PgSql.csproj b/SW.Mtm.PgSql/SW.Mtm.PgSql.csproj index be1249e..1c79806 100644 --- a/SW.Mtm.PgSql/SW.Mtm.PgSql.csproj +++ b/SW.Mtm.PgSql/SW.Mtm.PgSql.csproj @@ -9,7 +9,7 @@ - +