Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/src/Taskdeck.Api/Taskdeck.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.25" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.25" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.25">
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.14" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.14">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
5 changes: 4 additions & 1 deletion backend/src/Taskdeck.Cli/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
using Taskdeck.Infrastructure.Persistence;

var builder = Host.CreateApplicationBuilder(args);
builder.Logging.AddFilter("Microsoft.EntityFrameworkCore", LogLevel.Warning);

// CLI stdout must be clean JSON. Remove all default logging providers so EF Core
// and framework diagnostics never corrupt JSON output parsed by callers.
builder.Logging.ClearProviders();

var fallbackConnectionString = Environment.GetEnvironmentVariable("TASKDECK_CONNECTION_STRING")
?? "Data Source=taskdeck.db";
Expand Down
8 changes: 7 additions & 1 deletion backend/src/Taskdeck.Infrastructure/DependencyInjection.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Taskdeck.Application.Interfaces;
Expand All @@ -16,7 +17,12 @@ public static IServiceCollection AddInfrastructure(this IServiceCollection servi
?? "Data Source=taskdeck.db";

services.AddDbContext<TaskdeckDbContext>(options =>
options.UseSqlite(connectionString));
options
.UseSqlite(connectionString)
// EF Core 9 introduced PendingModelChangesWarning which throws when upgrading
// from EF Core 8 snapshots. EF tooling confirms no actual model changes are
// pending; suppress to allow startup after the snapshot format migration.
.ConfigureWarnings(w => w.Ignore(RelationalEventId.PendingModelChangesWarning)));

services.AddScoped<IBoardRepository, BoardRepository>();
services.AddScoped<IColumnRepository, ColumnRepository>();
Expand Down
Loading
Loading