Skip to content

Commit

Permalink
MMI-3116 Removed redundant migration scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
laidaoyu committed Dec 3, 2024
1 parent 63777e1 commit 76b04e6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion libs/net/dal/Configuration/SeriesConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public override void Configure(EntityTypeBuilder<Series> 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);
builder.Property(m => m.IsCBRASource).IsRequired();

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<SeriesMediaTypeSearchMapping>();
Expand Down
2 changes: 1 addition & 1 deletion libs/net/dal/Configuration/SourceConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public override void Configure(EntityTypeBuilder<Source> 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);
builder.Property(m => m.IsCBRASource).IsRequired();

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);
Expand Down

This file was deleted.

7 changes: 0 additions & 7 deletions libs/net/dal/Migrations/1.3.8/Up/PostUp/00-source-series.sql

This file was deleted.

0 comments on commit 76b04e6

Please sign in to comment.