From 6264350f9beee9e6a68985136b6dd1a0905f0142 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Thu, 18 Nov 2021 14:52:22 -0600 Subject: [PATCH] =?UTF-8?q?fix(dir):=20=F0=9F=90=9B=20convention-generated?= =?UTF-8?q?=20constraint=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Persistence/Queries/Entities/Change.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Change.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Change.cs index 29cbe2fb5..dca83d979 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Change.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Change.cs @@ -43,6 +43,10 @@ public virtual void Configure(EntityTypeBuilder builder) builder .Property(c => c.AggregateType) .HasComputedColumnSql(BuildComputedAggregateTypeSql(), true); + builder.HasOne(c => c.Language) + .WithMany(l => l.Changes) + .HasForeignKey(c => c.LanguageIso6391) + .HasConstraintName("fk_changes_languages_language_iso6391"); static string BuildComputedAggregateTypeSql() {