From 06927fb9b42e8c96cf6700dde9832a6abbe60d74 Mon Sep 17 00:00:00 2001 From: Arnaud Dartois Date: Mon, 27 Jul 2026 18:36:45 +0000 Subject: [PATCH] fix: remove stale NtfyToken from migration snapshot The UserNotificationConfig entity was migrated from Gotify to ntfy (NtfyUrl replaces GotifyUrl, NtfyEnabled replaces GotifyEnabled). NtfyToken was never part of the entity but the snapshot still referenced it, causing PendingModelChangesWarning and 4 integration test failures. Remove NtfyToken from the Designer.cs and ModelSnapshot.cs to align the snapshot with the actual entity model. --- .../Migrations/20260726202220_AddNotifications.Designer.cs | 4 ---- .../Migrations/AppDbContextModelSnapshot.cs | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/Heimdall.Infrastructure/Migrations/20260726202220_AddNotifications.Designer.cs b/src/Heimdall.Infrastructure/Migrations/20260726202220_AddNotifications.Designer.cs index 1a7c42e..31be8e9 100644 --- a/src/Heimdall.Infrastructure/Migrations/20260726202220_AddNotifications.Designer.cs +++ b/src/Heimdall.Infrastructure/Migrations/20260726202220_AddNotifications.Designer.cs @@ -1329,10 +1329,6 @@ namespace Heimdall.Infrastructure.Migrations b.Property("NtfyEnabled") .HasColumnType("boolean"); - b.Property("NtfyToken") - .HasMaxLength(500) - .HasColumnType("character varying(500)"); - b.Property("NtfyUrl") .HasMaxLength(500) .HasColumnType("character varying(500)"); diff --git a/src/Heimdall.Infrastructure/Migrations/AppDbContextModelSnapshot.cs b/src/Heimdall.Infrastructure/Migrations/AppDbContextModelSnapshot.cs index 7ad754b..f56d280 100644 --- a/src/Heimdall.Infrastructure/Migrations/AppDbContextModelSnapshot.cs +++ b/src/Heimdall.Infrastructure/Migrations/AppDbContextModelSnapshot.cs @@ -1326,10 +1326,6 @@ namespace Heimdall.Infrastructure.Migrations b.Property("NtfyEnabled") .HasColumnType("boolean"); - b.Property("NtfyToken") - .HasMaxLength(500) - .HasColumnType("character varying(500)"); - b.Property("NtfyUrl") .HasMaxLength(500) .HasColumnType("character varying(500)");