Fixing test database fill

This commit is contained in:
Zoe Roux
2021-06-20 13:54:51 +02:00
parent b8d4a2ed33
commit e91083afa8
18 changed files with 124 additions and 69 deletions
@@ -632,7 +632,8 @@ namespace Kyoo.Postgresql.Migrations
{
b.HasOne("Kyoo.Models.Season", "Season")
.WithMany("Episodes")
.HasForeignKey("SeasonID");
.HasForeignKey("SeasonID")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("Kyoo.Models.Show", "Show")
.WithMany("Episodes")