From 63777e16a5c727ce9ee647c686e909955f932ddf Mon Sep 17 00:00:00 2001 From: Dao Yu Lai Date: Tue, 3 Dec 2024 14:12:26 -0800 Subject: [PATCH] MMI-3116 Fixed dal config --- libs/net/dal/Configuration/SeriesConfiguration.cs | 2 +- libs/net/dal/Configuration/SourceConfiguration.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/net/dal/Configuration/SeriesConfiguration.cs b/libs/net/dal/Configuration/SeriesConfiguration.cs index 14e0824baf..6ceeba8f64 100644 --- a/libs/net/dal/Configuration/SeriesConfiguration.cs +++ b/libs/net/dal/Configuration/SeriesConfiguration.cs @@ -12,7 +12,7 @@ public override void Configure(EntityTypeBuilder builder) builder.Property(m => m.SourceId).IsRequired(false); builder.Property(m => m.AutoTranscribe).IsRequired(); builder.Property(m => m.UseInTopics).IsRequired(); - builder.Property(m => m.IsCBRASource).IsRequired(false); + builder.Property(m => m.IsCBRASource); builder.HasOne(m => m.Source).WithMany(m => m.Series).HasForeignKey(m => m.SourceId).OnDelete(DeleteBehavior.Cascade); builder.HasMany(m => m.MediaTypeSearchMappings).WithMany(m => m.SeriesSearchMappings).UsingEntity(); diff --git a/libs/net/dal/Configuration/SourceConfiguration.cs b/libs/net/dal/Configuration/SourceConfiguration.cs index 5c378bb843..5506c980cd 100644 --- a/libs/net/dal/Configuration/SourceConfiguration.cs +++ b/libs/net/dal/Configuration/SourceConfiguration.cs @@ -21,7 +21,7 @@ public override void Configure(EntityTypeBuilder builder) builder.Property(m => m.DisableTranscribe).IsRequired(); builder.Property(m => m.UseInTopics).IsRequired(); builder.Property(m => m.Configuration).IsRequired().HasColumnType("jsonb").HasDefaultValueSql("'{}'::jsonb"); - builder.Property(m => m.IsCBRASource).IsRequired(false); + builder.Property(m => m.IsCBRASource); builder.HasOne(m => m.Owner).WithMany().HasForeignKey(m => m.OwnerId).OnDelete(DeleteBehavior.SetNull); builder.HasOne(m => m.License).WithMany(m => m.Sources).HasForeignKey(m => m.LicenseId).OnDelete(DeleteBehavior.Restrict);