Fixing migrations

This commit is contained in:
Zoe Roux 2021-07-24 01:02:39 +02:00
parent c206512e3b
commit d8da21ddec
11 changed files with 275 additions and 29 deletions

View File

@ -185,5 +185,5 @@ namespace Kyoo.Models
/// <summary> /// <summary>
/// The enum containing show's status. /// The enum containing show's status.
/// </summary> /// </summary>
public enum Status { Finished, Airing, Planned, Unknown } public enum Status { Unknown, Finished, Airing, Planned }
} }

View File

@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
namespace Kyoo.Postgresql.Migrations namespace Kyoo.Postgresql.Migrations
{ {
[DbContext(typeof(PostgresContext))] [DbContext(typeof(PostgresContext))]
[Migration("20210627141933_Initial")] [Migration("20210723224326_Initial")]
partial class Initial partial class Initial
{ {
protected override void BuildTargetModel(ModelBuilder modelBuilder) protected override void BuildTargetModel(ModelBuilder modelBuilder)
@ -20,10 +20,10 @@ namespace Kyoo.Postgresql.Migrations
#pragma warning disable 612, 618 #pragma warning disable 612, 618
modelBuilder modelBuilder
.HasPostgresEnum(null, "item_type", new[] { "show", "movie", "collection" }) .HasPostgresEnum(null, "item_type", new[] { "show", "movie", "collection" })
.HasPostgresEnum(null, "status", new[] { "finished", "airing", "planned", "unknown" }) .HasPostgresEnum(null, "status", new[] { "unknown", "finished", "airing", "planned" })
.HasPostgresEnum(null, "stream_type", new[] { "unknown", "video", "audio", "subtitle", "attachment" }) .HasPostgresEnum(null, "stream_type", new[] { "unknown", "video", "audio", "subtitle", "attachment" })
.HasAnnotation("Relational:MaxIdentifierLength", 63) .HasAnnotation("Relational:MaxIdentifierLength", 63)
.HasAnnotation("ProductVersion", "5.0.7") .HasAnnotation("ProductVersion", "5.0.8")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
modelBuilder.Entity("Kyoo.Models.Collection", b => modelBuilder.Entity("Kyoo.Models.Collection", b =>
@ -189,6 +189,51 @@ namespace Kyoo.Postgresql.Migrations
b.ToTable("libraries"); b.ToTable("libraries");
}); });
modelBuilder.Entity("Kyoo.Models.LibraryItem", b =>
{
b.Property<int>("ID")
.HasColumnType("integer")
.HasColumnName("id")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<DateTime?>("EndAir")
.HasColumnType("timestamp without time zone")
.HasColumnName("end_air");
b.Property<string>("Overview")
.HasColumnType("text")
.HasColumnName("overview");
b.Property<string>("Poster")
.HasColumnType("text")
.HasColumnName("poster");
b.Property<string>("Slug")
.HasColumnType("text")
.HasColumnName("slug");
b.Property<DateTime?>("StartAir")
.HasColumnType("timestamp without time zone")
.HasColumnName("start_air");
b.Property<Status?>("Status")
.HasColumnType("status")
.HasColumnName("status");
b.Property<string>("Title")
.HasColumnType("text")
.HasColumnName("title");
b.Property<ItemType>("Type")
.HasColumnType("item_type")
.HasColumnName("type");
b.HasKey("ID")
.HasName("pk_library_items");
b.ToView("library_items");
});
modelBuilder.Entity("Kyoo.Models.Link<Kyoo.Models.Collection, Kyoo.Models.Show>", b => modelBuilder.Entity("Kyoo.Models.Link<Kyoo.Models.Collection, Kyoo.Models.Show>", b =>
{ {
b.Property<int>("FirstID") b.Property<int>("FirstID")
@ -621,7 +666,7 @@ namespace Kyoo.Postgresql.Migrations
.HasColumnType("timestamp without time zone") .HasColumnType("timestamp without time zone")
.HasColumnName("start_air"); .HasColumnName("start_air");
b.Property<Status?>("Status") b.Property<Status>("Status")
.HasColumnType("status") .HasColumnType("status")
.HasColumnName("status"); .HasColumnName("status");
@ -1078,7 +1123,8 @@ namespace Kyoo.Postgresql.Migrations
b.HasOne("Kyoo.Models.Studio", "Studio") b.HasOne("Kyoo.Models.Studio", "Studio")
.WithMany("Shows") .WithMany("Shows")
.HasForeignKey("StudioID") .HasForeignKey("StudioID")
.HasConstraintName("fk_shows_studios_studio_id"); .HasConstraintName("fk_shows_studios_studio_id")
.OnDelete(DeleteBehavior.SetNull);
b.Navigation("Studio"); b.Navigation("Studio");
}); });

View File

@ -12,7 +12,7 @@ namespace Kyoo.Postgresql.Migrations
{ {
migrationBuilder.AlterDatabase() migrationBuilder.AlterDatabase()
.Annotation("Npgsql:Enum:item_type", "show,movie,collection") .Annotation("Npgsql:Enum:item_type", "show,movie,collection")
.Annotation("Npgsql:Enum:status", "finished,airing,planned,unknown") .Annotation("Npgsql:Enum:status", "unknown,finished,airing,planned")
.Annotation("Npgsql:Enum:stream_type", "unknown,video,audio,subtitle,attachment"); .Annotation("Npgsql:Enum:stream_type", "unknown,video,audio,subtitle,attachment");
migrationBuilder.CreateTable( migrationBuilder.CreateTable(
@ -208,7 +208,7 @@ namespace Kyoo.Postgresql.Migrations
aliases = table.Column<string[]>(type: "text[]", nullable: true), aliases = table.Column<string[]>(type: "text[]", nullable: true),
path = table.Column<string>(type: "text", nullable: true), path = table.Column<string>(type: "text", nullable: true),
overview = table.Column<string>(type: "text", nullable: true), overview = table.Column<string>(type: "text", nullable: true),
status = table.Column<Status>(type: "status", nullable: true), status = table.Column<Status>(type: "status", nullable: false),
trailer_url = table.Column<string>(type: "text", nullable: true), trailer_url = table.Column<string>(type: "text", nullable: true),
start_air = table.Column<DateTime>(type: "timestamp without time zone", nullable: true), start_air = table.Column<DateTime>(type: "timestamp without time zone", nullable: true),
end_air = table.Column<DateTime>(type: "timestamp without time zone", nullable: true), end_air = table.Column<DateTime>(type: "timestamp without time zone", nullable: true),

View File

@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
namespace Kyoo.Postgresql.Migrations namespace Kyoo.Postgresql.Migrations
{ {
[DbContext(typeof(PostgresContext))] [DbContext(typeof(PostgresContext))]
[Migration("20210627141941_Triggers")] [Migration("20210723224335_Triggers")]
partial class Triggers partial class Triggers
{ {
protected override void BuildTargetModel(ModelBuilder modelBuilder) protected override void BuildTargetModel(ModelBuilder modelBuilder)
@ -20,10 +20,10 @@ namespace Kyoo.Postgresql.Migrations
#pragma warning disable 612, 618 #pragma warning disable 612, 618
modelBuilder modelBuilder
.HasPostgresEnum(null, "item_type", new[] { "show", "movie", "collection" }) .HasPostgresEnum(null, "item_type", new[] { "show", "movie", "collection" })
.HasPostgresEnum(null, "status", new[] { "finished", "airing", "planned", "unknown" }) .HasPostgresEnum(null, "status", new[] { "unknown", "finished", "airing", "planned" })
.HasPostgresEnum(null, "stream_type", new[] { "unknown", "video", "audio", "subtitle", "attachment" }) .HasPostgresEnum(null, "stream_type", new[] { "unknown", "video", "audio", "subtitle", "attachment" })
.HasAnnotation("Relational:MaxIdentifierLength", 63) .HasAnnotation("Relational:MaxIdentifierLength", 63)
.HasAnnotation("ProductVersion", "5.0.7") .HasAnnotation("ProductVersion", "5.0.8")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
modelBuilder.Entity("Kyoo.Models.Collection", b => modelBuilder.Entity("Kyoo.Models.Collection", b =>
@ -189,6 +189,51 @@ namespace Kyoo.Postgresql.Migrations
b.ToTable("libraries"); b.ToTable("libraries");
}); });
modelBuilder.Entity("Kyoo.Models.LibraryItem", b =>
{
b.Property<int>("ID")
.HasColumnType("integer")
.HasColumnName("id")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<DateTime?>("EndAir")
.HasColumnType("timestamp without time zone")
.HasColumnName("end_air");
b.Property<string>("Overview")
.HasColumnType("text")
.HasColumnName("overview");
b.Property<string>("Poster")
.HasColumnType("text")
.HasColumnName("poster");
b.Property<string>("Slug")
.HasColumnType("text")
.HasColumnName("slug");
b.Property<DateTime?>("StartAir")
.HasColumnType("timestamp without time zone")
.HasColumnName("start_air");
b.Property<Status?>("Status")
.HasColumnType("status")
.HasColumnName("status");
b.Property<string>("Title")
.HasColumnType("text")
.HasColumnName("title");
b.Property<ItemType>("Type")
.HasColumnType("item_type")
.HasColumnName("type");
b.HasKey("ID")
.HasName("pk_library_items");
b.ToView("library_items");
});
modelBuilder.Entity("Kyoo.Models.Link<Kyoo.Models.Collection, Kyoo.Models.Show>", b => modelBuilder.Entity("Kyoo.Models.Link<Kyoo.Models.Collection, Kyoo.Models.Show>", b =>
{ {
b.Property<int>("FirstID") b.Property<int>("FirstID")
@ -621,7 +666,7 @@ namespace Kyoo.Postgresql.Migrations
.HasColumnType("timestamp without time zone") .HasColumnType("timestamp without time zone")
.HasColumnName("start_air"); .HasColumnName("start_air");
b.Property<Status?>("Status") b.Property<Status>("Status")
.HasColumnType("status") .HasColumnType("status")
.HasColumnName("status"); .HasColumnName("status");
@ -1078,7 +1123,8 @@ namespace Kyoo.Postgresql.Migrations
b.HasOne("Kyoo.Models.Studio", "Studio") b.HasOne("Kyoo.Models.Studio", "Studio")
.WithMany("Shows") .WithMany("Shows")
.HasForeignKey("StudioID") .HasForeignKey("StudioID")
.HasConstraintName("fk_shows_studios_studio_id"); .HasConstraintName("fk_shows_studios_studio_id")
.OnDelete(DeleteBehavior.SetNull);
b.Navigation("Studio"); b.Navigation("Studio");
}); });

View File

@ -18,10 +18,10 @@ namespace Kyoo.Postgresql.Migrations
#pragma warning disable 612, 618 #pragma warning disable 612, 618
modelBuilder modelBuilder
.HasPostgresEnum(null, "item_type", new[] { "show", "movie", "collection" }) .HasPostgresEnum(null, "item_type", new[] { "show", "movie", "collection" })
.HasPostgresEnum(null, "status", new[] { "finished", "airing", "planned", "unknown" }) .HasPostgresEnum(null, "status", new[] { "unknown", "finished", "airing", "planned" })
.HasPostgresEnum(null, "stream_type", new[] { "unknown", "video", "audio", "subtitle", "attachment" }) .HasPostgresEnum(null, "stream_type", new[] { "unknown", "video", "audio", "subtitle", "attachment" })
.HasAnnotation("Relational:MaxIdentifierLength", 63) .HasAnnotation("Relational:MaxIdentifierLength", 63)
.HasAnnotation("ProductVersion", "5.0.7") .HasAnnotation("ProductVersion", "5.0.8")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
modelBuilder.Entity("Kyoo.Models.Collection", b => modelBuilder.Entity("Kyoo.Models.Collection", b =>
@ -187,6 +187,51 @@ namespace Kyoo.Postgresql.Migrations
b.ToTable("libraries"); b.ToTable("libraries");
}); });
modelBuilder.Entity("Kyoo.Models.LibraryItem", b =>
{
b.Property<int>("ID")
.HasColumnType("integer")
.HasColumnName("id")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<DateTime?>("EndAir")
.HasColumnType("timestamp without time zone")
.HasColumnName("end_air");
b.Property<string>("Overview")
.HasColumnType("text")
.HasColumnName("overview");
b.Property<string>("Poster")
.HasColumnType("text")
.HasColumnName("poster");
b.Property<string>("Slug")
.HasColumnType("text")
.HasColumnName("slug");
b.Property<DateTime?>("StartAir")
.HasColumnType("timestamp without time zone")
.HasColumnName("start_air");
b.Property<Status?>("Status")
.HasColumnType("status")
.HasColumnName("status");
b.Property<string>("Title")
.HasColumnType("text")
.HasColumnName("title");
b.Property<ItemType>("Type")
.HasColumnType("item_type")
.HasColumnName("type");
b.HasKey("ID")
.HasName("pk_library_items");
b.ToView("library_items");
});
modelBuilder.Entity("Kyoo.Models.Link<Kyoo.Models.Collection, Kyoo.Models.Show>", b => modelBuilder.Entity("Kyoo.Models.Link<Kyoo.Models.Collection, Kyoo.Models.Show>", b =>
{ {
b.Property<int>("FirstID") b.Property<int>("FirstID")
@ -619,7 +664,7 @@ namespace Kyoo.Postgresql.Migrations
.HasColumnType("timestamp without time zone") .HasColumnType("timestamp without time zone")
.HasColumnName("start_air"); .HasColumnName("start_air");
b.Property<Status?>("Status") b.Property<Status>("Status")
.HasColumnType("status") .HasColumnType("status")
.HasColumnName("status"); .HasColumnName("status");
@ -1076,7 +1121,8 @@ namespace Kyoo.Postgresql.Migrations
b.HasOne("Kyoo.Models.Studio", "Studio") b.HasOne("Kyoo.Models.Studio", "Studio")
.WithMany("Shows") .WithMany("Shows")
.HasForeignKey("StudioID") .HasForeignKey("StudioID")
.HasConstraintName("fk_shows_studios_studio_id"); .HasConstraintName("fk_shows_studios_studio_id")
.OnDelete(DeleteBehavior.SetNull);
b.Navigation("Studio"); b.Navigation("Studio");
}); });

View File

@ -9,14 +9,14 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Kyoo.SqLite.Migrations namespace Kyoo.SqLite.Migrations
{ {
[DbContext(typeof(SqLiteContext))] [DbContext(typeof(SqLiteContext))]
[Migration("20210626141337_Initial")] [Migration("20210723224542_Initial")]
partial class Initial partial class Initial
{ {
protected override void BuildTargetModel(ModelBuilder modelBuilder) protected override void BuildTargetModel(ModelBuilder modelBuilder)
{ {
#pragma warning disable 612, 618 #pragma warning disable 612, 618
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "5.0.7"); .HasAnnotation("ProductVersion", "5.0.8");
modelBuilder.Entity("Kyoo.Models.Collection", b => modelBuilder.Entity("Kyoo.Models.Collection", b =>
{ {
@ -143,6 +143,41 @@ namespace Kyoo.SqLite.Migrations
b.ToTable("Libraries"); b.ToTable("Libraries");
}); });
modelBuilder.Entity("Kyoo.Models.LibraryItem", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("EndAir")
.HasColumnType("TEXT");
b.Property<string>("Overview")
.HasColumnType("TEXT");
b.Property<string>("Poster")
.HasColumnType("TEXT");
b.Property<string>("Slug")
.HasColumnType("TEXT");
b.Property<DateTime?>("StartAir")
.HasColumnType("TEXT");
b.Property<int?>("Status")
.HasColumnType("INTEGER");
b.Property<string>("Title")
.HasColumnType("TEXT");
b.Property<int>("Type")
.HasColumnType("INTEGER");
b.HasKey("ID");
b.ToView("LibraryItems");
});
modelBuilder.Entity("Kyoo.Models.Link<Kyoo.Models.Collection, Kyoo.Models.Show>", b => modelBuilder.Entity("Kyoo.Models.Link<Kyoo.Models.Collection, Kyoo.Models.Show>", b =>
{ {
b.Property<int>("FirstID") b.Property<int>("FirstID")
@ -477,7 +512,7 @@ namespace Kyoo.SqLite.Migrations
b.Property<DateTime?>("StartAir") b.Property<DateTime?>("StartAir")
.HasColumnType("TEXT"); .HasColumnType("TEXT");
b.Property<int?>("Status") b.Property<int>("Status")
.HasColumnType("INTEGER"); .HasColumnType("INTEGER");
b.Property<int?>("StudioID") b.Property<int?>("StudioID")
@ -864,7 +899,8 @@ namespace Kyoo.SqLite.Migrations
{ {
b.HasOne("Kyoo.Models.Studio", "Studio") b.HasOne("Kyoo.Models.Studio", "Studio")
.WithMany("Shows") .WithMany("Shows")
.HasForeignKey("StudioID"); .HasForeignKey("StudioID")
.OnDelete(DeleteBehavior.SetNull);
b.Navigation("Studio"); b.Navigation("Studio");
}); });

View File

@ -200,7 +200,7 @@ namespace Kyoo.SqLite.Migrations
Aliases = table.Column<string>(type: "TEXT", nullable: true), Aliases = table.Column<string>(type: "TEXT", nullable: true),
Path = table.Column<string>(type: "TEXT", nullable: true), Path = table.Column<string>(type: "TEXT", nullable: true),
Overview = table.Column<string>(type: "TEXT", nullable: true), Overview = table.Column<string>(type: "TEXT", nullable: true),
Status = table.Column<int>(type: "INTEGER", nullable: true), Status = table.Column<int>(type: "INTEGER", nullable: false),
TrailerUrl = table.Column<string>(type: "TEXT", nullable: true), TrailerUrl = table.Column<string>(type: "TEXT", nullable: true),
StartAir = table.Column<DateTime>(type: "TEXT", nullable: true), StartAir = table.Column<DateTime>(type: "TEXT", nullable: true),
EndAir = table.Column<DateTime>(type: "TEXT", nullable: true), EndAir = table.Column<DateTime>(type: "TEXT", nullable: true),

View File

@ -9,14 +9,14 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Kyoo.SqLite.Migrations namespace Kyoo.SqLite.Migrations
{ {
[DbContext(typeof(SqLiteContext))] [DbContext(typeof(SqLiteContext))]
[Migration("20210626141347_Triggers")] [Migration("20210723224550_Triggers")]
partial class Triggers partial class Triggers
{ {
protected override void BuildTargetModel(ModelBuilder modelBuilder) protected override void BuildTargetModel(ModelBuilder modelBuilder)
{ {
#pragma warning disable 612, 618 #pragma warning disable 612, 618
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "5.0.7"); .HasAnnotation("ProductVersion", "5.0.8");
modelBuilder.Entity("Kyoo.Models.Collection", b => modelBuilder.Entity("Kyoo.Models.Collection", b =>
{ {
@ -143,6 +143,41 @@ namespace Kyoo.SqLite.Migrations
b.ToTable("Libraries"); b.ToTable("Libraries");
}); });
modelBuilder.Entity("Kyoo.Models.LibraryItem", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("EndAir")
.HasColumnType("TEXT");
b.Property<string>("Overview")
.HasColumnType("TEXT");
b.Property<string>("Poster")
.HasColumnType("TEXT");
b.Property<string>("Slug")
.HasColumnType("TEXT");
b.Property<DateTime?>("StartAir")
.HasColumnType("TEXT");
b.Property<int?>("Status")
.HasColumnType("INTEGER");
b.Property<string>("Title")
.HasColumnType("TEXT");
b.Property<int>("Type")
.HasColumnType("INTEGER");
b.HasKey("ID");
b.ToView("LibraryItems");
});
modelBuilder.Entity("Kyoo.Models.Link<Kyoo.Models.Collection, Kyoo.Models.Show>", b => modelBuilder.Entity("Kyoo.Models.Link<Kyoo.Models.Collection, Kyoo.Models.Show>", b =>
{ {
b.Property<int>("FirstID") b.Property<int>("FirstID")
@ -477,7 +512,7 @@ namespace Kyoo.SqLite.Migrations
b.Property<DateTime?>("StartAir") b.Property<DateTime?>("StartAir")
.HasColumnType("TEXT"); .HasColumnType("TEXT");
b.Property<int?>("Status") b.Property<int>("Status")
.HasColumnType("INTEGER"); .HasColumnType("INTEGER");
b.Property<int?>("StudioID") b.Property<int?>("StudioID")
@ -864,7 +899,8 @@ namespace Kyoo.SqLite.Migrations
{ {
b.HasOne("Kyoo.Models.Studio", "Studio") b.HasOne("Kyoo.Models.Studio", "Studio")
.WithMany("Shows") .WithMany("Shows")
.HasForeignKey("StudioID"); .HasForeignKey("StudioID")
.OnDelete(DeleteBehavior.SetNull);
b.Navigation("Studio"); b.Navigation("Studio");
}); });

View File

@ -14,7 +14,7 @@ namespace Kyoo.SqLite.Migrations
{ {
#pragma warning disable 612, 618 #pragma warning disable 612, 618
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "5.0.7"); .HasAnnotation("ProductVersion", "5.0.8");
modelBuilder.Entity("Kyoo.Models.Collection", b => modelBuilder.Entity("Kyoo.Models.Collection", b =>
{ {
@ -141,6 +141,41 @@ namespace Kyoo.SqLite.Migrations
b.ToTable("Libraries"); b.ToTable("Libraries");
}); });
modelBuilder.Entity("Kyoo.Models.LibraryItem", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime?>("EndAir")
.HasColumnType("TEXT");
b.Property<string>("Overview")
.HasColumnType("TEXT");
b.Property<string>("Poster")
.HasColumnType("TEXT");
b.Property<string>("Slug")
.HasColumnType("TEXT");
b.Property<DateTime?>("StartAir")
.HasColumnType("TEXT");
b.Property<int?>("Status")
.HasColumnType("INTEGER");
b.Property<string>("Title")
.HasColumnType("TEXT");
b.Property<int>("Type")
.HasColumnType("INTEGER");
b.HasKey("ID");
b.ToView("LibraryItems");
});
modelBuilder.Entity("Kyoo.Models.Link<Kyoo.Models.Collection, Kyoo.Models.Show>", b => modelBuilder.Entity("Kyoo.Models.Link<Kyoo.Models.Collection, Kyoo.Models.Show>", b =>
{ {
b.Property<int>("FirstID") b.Property<int>("FirstID")
@ -475,7 +510,7 @@ namespace Kyoo.SqLite.Migrations
b.Property<DateTime?>("StartAir") b.Property<DateTime?>("StartAir")
.HasColumnType("TEXT"); .HasColumnType("TEXT");
b.Property<int?>("Status") b.Property<int>("Status")
.HasColumnType("INTEGER"); .HasColumnType("INTEGER");
b.Property<int?>("StudioID") b.Property<int?>("StudioID")
@ -862,7 +897,8 @@ namespace Kyoo.SqLite.Migrations
{ {
b.HasOne("Kyoo.Models.Studio", "Studio") b.HasOne("Kyoo.Models.Studio", "Studio")
.WithMany("Shows") .WithMany("Shows")
.HasForeignKey("StudioID"); .HasForeignKey("StudioID")
.OnDelete(DeleteBehavior.SetNull);
b.Navigation("Studio"); b.Navigation("Studio");
}); });