diff --git a/src/Ombi.Store/Migration.md b/src/Ombi.Store/Migration.md
index 5a8f9b667..8332e8ce9 100644
--- a/src/Ombi.Store/Migration.md
+++ b/src/Ombi.Store/Migration.md
@@ -21,7 +21,7 @@ If running migrations for any db provider other than Sqlite, then ensure the dat
dotnet add package Microsoft.EntityFrameworkCore.Design
```
-1. For some reason, the `StartupSingleton.Instance.SecurityKey` in `src/Ombi/Extensions/StartupExtensions.cs` is invalid when running `otnet ef migrations add` so we must fix it; apply this patch which seems to do the job:
+1. For some reason, the `StartupSingleton.Instance.SecurityKey` in `src/Ombi/Extensions/StartupExtensions.cs` is invalid when running `dotnet ef migrations add` so we must fix it; apply this patch which seems to do the job:
```
@@ -79,7 +79,7 @@ namespace Ombi
diff --git a/src/Ombi.Store/Migrations/ExternalSqlite/20201212014227_Jellyfin.Designer.cs b/src/Ombi.Store/Migrations/ExternalSqlite/20201212014227_Jellyfin.Designer.cs
new file mode 100644
index 000000000..19189c2e0
--- /dev/null
+++ b/src/Ombi.Store/Migrations/ExternalSqlite/20201212014227_Jellyfin.Designer.cs
@@ -0,0 +1,506 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using Ombi.Store.Context.Sqlite;
+
+namespace Ombi.Store.Migrations.ExternalSqlite
+{
+ [DbContext(typeof(ExternalSqliteContext))]
+ [Migration("20201212014227_Jellyfin")]
+ partial class Jellyfin
+ {
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "5.0.1");
+
+ modelBuilder.Entity("Ombi.Store.Entities.CouchPotatoCache", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property("TheMovieDbId")
+ .HasColumnType("INTEGER");
+
+ b.HasKey("Id");
+
+ b.ToTable("CouchPotatoCache");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.EmbyContent", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property("AddedAt")
+ .HasColumnType("TEXT");
+
+ b.Property("EmbyId")
+ .IsRequired()
+ .HasColumnType("TEXT");
+
+ b.Property("ImdbId")
+ .HasColumnType("TEXT");
+
+ b.Property("ProviderId")
+ .HasColumnType("TEXT");
+
+ b.Property("TheMovieDbId")
+ .HasColumnType("TEXT");
+
+ b.Property("Title")
+ .HasColumnType("TEXT");
+
+ b.Property("TvDbId")
+ .HasColumnType("TEXT");
+
+ b.Property("Type")
+ .HasColumnType("INTEGER");
+
+ b.Property("Url")
+ .HasColumnType("TEXT");
+
+ b.HasKey("Id");
+
+ b.ToTable("EmbyContent");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.EmbyEpisode", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property("AddedAt")
+ .HasColumnType("TEXT");
+
+ b.Property("EmbyId")
+ .HasColumnType("TEXT");
+
+ b.Property("EpisodeNumber")
+ .HasColumnType("INTEGER");
+
+ b.Property("ImdbId")
+ .HasColumnType("TEXT");
+
+ b.Property("ParentId")
+ .HasColumnType("TEXT");
+
+ b.Property("ProviderId")
+ .HasColumnType("TEXT");
+
+ b.Property("SeasonNumber")
+ .HasColumnType("INTEGER");
+
+ b.Property("TheMovieDbId")
+ .HasColumnType("TEXT");
+
+ b.Property("Title")
+ .HasColumnType("TEXT");
+
+ b.Property("TvDbId")
+ .HasColumnType("TEXT");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ParentId");
+
+ b.ToTable("EmbyEpisode");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.JellyfinContent", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property("AddedAt")
+ .HasColumnType("TEXT");
+
+ b.Property("ImdbId")
+ .HasColumnType("TEXT");
+
+ b.Property("JellyfinId")
+ .IsRequired()
+ .HasColumnType("TEXT");
+
+ b.Property("ProviderId")
+ .HasColumnType("TEXT");
+
+ b.Property("TheMovieDbId")
+ .HasColumnType("TEXT");
+
+ b.Property("Title")
+ .HasColumnType("TEXT");
+
+ b.Property("TvDbId")
+ .HasColumnType("TEXT");
+
+ b.Property("Type")
+ .HasColumnType("INTEGER");
+
+ b.Property("Url")
+ .HasColumnType("TEXT");
+
+ b.HasKey("Id");
+
+ b.ToTable("JellyfinContent");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.JellyfinEpisode", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property("AddedAt")
+ .HasColumnType("TEXT");
+
+ b.Property("EpisodeNumber")
+ .HasColumnType("INTEGER");
+
+ b.Property("ImdbId")
+ .HasColumnType("TEXT");
+
+ b.Property("JellyfinId")
+ .HasColumnType("TEXT");
+
+ b.Property("ParentId")
+ .HasColumnType("TEXT");
+
+ b.Property("ProviderId")
+ .HasColumnType("TEXT");
+
+ b.Property("SeasonNumber")
+ .HasColumnType("INTEGER");
+
+ b.Property("TheMovieDbId")
+ .HasColumnType("TEXT");
+
+ b.Property("Title")
+ .HasColumnType("TEXT");
+
+ b.Property("TvDbId")
+ .HasColumnType("TEXT");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ParentId");
+
+ b.ToTable("JellyfinEpisode");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.LidarrAlbumCache", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property("AddedAt")
+ .HasColumnType("TEXT");
+
+ b.Property("ArtistId")
+ .HasColumnType("INTEGER");
+
+ b.Property("ForeignAlbumId")
+ .HasColumnType("TEXT");
+
+ b.Property("Monitored")
+ .HasColumnType("INTEGER");
+
+ b.Property("PercentOfTracks")
+ .HasColumnType("TEXT");
+
+ b.Property("ReleaseDate")
+ .HasColumnType("TEXT");
+
+ b.Property("Title")
+ .HasColumnType("TEXT");
+
+ b.Property("TrackCount")
+ .HasColumnType("INTEGER");
+
+ b.HasKey("Id");
+
+ b.ToTable("LidarrAlbumCache");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.LidarrArtistCache", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property("ArtistId")
+ .HasColumnType("INTEGER");
+
+ b.Property("ArtistName")
+ .HasColumnType("TEXT");
+
+ b.Property("ForeignArtistId")
+ .HasColumnType("TEXT");
+
+ b.Property("Monitored")
+ .HasColumnType("INTEGER");
+
+ b.HasKey("Id");
+
+ b.ToTable("LidarrArtistCache");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.PlexEpisode", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property("EpisodeNumber")
+ .HasColumnType("INTEGER");
+
+ b.Property("GrandparentKey")
+ .HasColumnType("INTEGER");
+
+ b.Property("Key")
+ .HasColumnType("INTEGER");
+
+ b.Property("ParentKey")
+ .HasColumnType("INTEGER");
+
+ b.Property("SeasonNumber")
+ .HasColumnType("INTEGER");
+
+ b.Property("Title")
+ .HasColumnType("TEXT");
+
+ b.HasKey("Id");
+
+ b.HasIndex("GrandparentKey");
+
+ b.ToTable("PlexEpisode");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.PlexSeasonsContent", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property("ParentKey")
+ .HasColumnType("INTEGER");
+
+ b.Property("PlexContentId")
+ .HasColumnType("INTEGER");
+
+ b.Property("PlexServerContentId")
+ .HasColumnType("INTEGER");
+
+ b.Property("SeasonKey")
+ .HasColumnType("INTEGER");
+
+ b.Property("SeasonNumber")
+ .HasColumnType("INTEGER");
+
+ b.HasKey("Id");
+
+ b.HasIndex("PlexServerContentId");
+
+ b.ToTable("PlexSeasonsContent");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.PlexServerContent", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property("AddedAt")
+ .HasColumnType("TEXT");
+
+ b.Property("ImdbId")
+ .HasColumnType("TEXT");
+
+ b.Property("Key")
+ .HasColumnType("INTEGER");
+
+ b.Property("Quality")
+ .HasColumnType("TEXT");
+
+ b.Property("ReleaseYear")
+ .HasColumnType("TEXT");
+
+ b.Property("RequestId")
+ .HasColumnType("INTEGER");
+
+ b.Property("TheMovieDbId")
+ .HasColumnType("TEXT");
+
+ b.Property("Title")
+ .HasColumnType("TEXT");
+
+ b.Property("TvDbId")
+ .HasColumnType("TEXT");
+
+ b.Property("Type")
+ .HasColumnType("INTEGER");
+
+ b.Property("Url")
+ .HasColumnType("TEXT");
+
+ b.HasKey("Id");
+
+ b.ToTable("PlexServerContent");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.RadarrCache", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property("HasFile")
+ .HasColumnType("INTEGER");
+
+ b.Property("TheMovieDbId")
+ .HasColumnType("INTEGER");
+
+ b.HasKey("Id");
+
+ b.ToTable("RadarrCache");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.SickRageCache", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property("TvDbId")
+ .HasColumnType("INTEGER");
+
+ b.HasKey("Id");
+
+ b.ToTable("SickRageCache");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.SickRageEpisodeCache", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property("EpisodeNumber")
+ .HasColumnType("INTEGER");
+
+ b.Property("SeasonNumber")
+ .HasColumnType("INTEGER");
+
+ b.Property("TvDbId")
+ .HasColumnType("INTEGER");
+
+ b.HasKey("Id");
+
+ b.ToTable("SickRageEpisodeCache");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.SonarrCache", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property("TvDbId")
+ .HasColumnType("INTEGER");
+
+ b.HasKey("Id");
+
+ b.ToTable("SonarrCache");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.SonarrEpisodeCache", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property("EpisodeNumber")
+ .HasColumnType("INTEGER");
+
+ b.Property("HasFile")
+ .HasColumnType("INTEGER");
+
+ b.Property("SeasonNumber")
+ .HasColumnType("INTEGER");
+
+ b.Property("TvDbId")
+ .HasColumnType("INTEGER");
+
+ b.HasKey("Id");
+
+ b.ToTable("SonarrEpisodeCache");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.EmbyEpisode", b =>
+ {
+ b.HasOne("Ombi.Store.Entities.EmbyContent", "Series")
+ .WithMany("Episodes")
+ .HasForeignKey("ParentId")
+ .HasPrincipalKey("EmbyId");
+
+ b.Navigation("Series");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.JellyfinEpisode", b =>
+ {
+ b.HasOne("Ombi.Store.Entities.JellyfinContent", "Series")
+ .WithMany("Episodes")
+ .HasForeignKey("ParentId")
+ .HasPrincipalKey("JellyfinId");
+
+ b.Navigation("Series");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.PlexEpisode", b =>
+ {
+ b.HasOne("Ombi.Store.Entities.PlexServerContent", "Series")
+ .WithMany("Episodes")
+ .HasForeignKey("GrandparentKey")
+ .HasPrincipalKey("Key")
+ .OnDelete(DeleteBehavior.Cascade)
+ .IsRequired();
+
+ b.Navigation("Series");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.PlexSeasonsContent", b =>
+ {
+ b.HasOne("Ombi.Store.Entities.PlexServerContent", null)
+ .WithMany("Seasons")
+ .HasForeignKey("PlexServerContentId");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.EmbyContent", b =>
+ {
+ b.Navigation("Episodes");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.JellyfinContent", b =>
+ {
+ b.Navigation("Episodes");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.PlexServerContent", b =>
+ {
+ b.Navigation("Episodes");
+
+ b.Navigation("Seasons");
+ });
+#pragma warning restore 612, 618
+ }
+ }
+}
diff --git a/src/Ombi.Store/Migrations/OmbiSqlite/20201211042424_Jellyfin.cs b/src/Ombi.Store/Migrations/ExternalSqlite/20201212014227_Jellyfin.cs
similarity index 98%
rename from src/Ombi.Store/Migrations/OmbiSqlite/20201211042424_Jellyfin.cs
rename to src/Ombi.Store/Migrations/ExternalSqlite/20201212014227_Jellyfin.cs
index 4e9187237..50d630b16 100644
--- a/src/Ombi.Store/Migrations/OmbiSqlite/20201211042424_Jellyfin.cs
+++ b/src/Ombi.Store/Migrations/ExternalSqlite/20201212014227_Jellyfin.cs
@@ -2,7 +2,7 @@
using System;
using System.Collections.Generic;
-namespace Ombi.Store.Migrations.OmbiSqlite
+namespace Ombi.Store.Migrations.ExternalSqlite
{
public partial class Jellyfin : Migration
{
diff --git a/src/Ombi.Store/Migrations/ExternalSqlite/ExternalSqliteContextModelSnapshot.cs b/src/Ombi.Store/Migrations/ExternalSqlite/ExternalSqliteContextModelSnapshot.cs
index 86e292e2f..d8378c814 100644
--- a/src/Ombi.Store/Migrations/ExternalSqlite/ExternalSqliteContextModelSnapshot.cs
+++ b/src/Ombi.Store/Migrations/ExternalSqlite/ExternalSqliteContextModelSnapshot.cs
@@ -14,14 +14,16 @@ namespace Ombi.Store.Migrations.ExternalSqlite
{
#pragma warning disable 612, 618
modelBuilder
- .HasAnnotation("ProductVersion", "2.2.6-servicing-10079");
+ .HasAnnotation("ProductVersion", "5.0.1");
modelBuilder.Entity("Ombi.Store.Entities.CouchPotatoCache", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
- b.Property("TheMovieDbId");
+ b.Property("TheMovieDbId")
+ .HasColumnType("INTEGER");
b.HasKey("Id");
@@ -31,26 +33,36 @@ namespace Ombi.Store.Migrations.ExternalSqlite
modelBuilder.Entity("Ombi.Store.Entities.EmbyContent", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
- b.Property("AddedAt");
+ b.Property("AddedAt")
+ .HasColumnType("TEXT");
b.Property("EmbyId")
- .IsRequired();
+ .IsRequired()
+ .HasColumnType("TEXT");
- b.Property("ImdbId");
+ b.Property("ImdbId")
+ .HasColumnType("TEXT");
- b.Property("ProviderId");
+ b.Property("ProviderId")
+ .HasColumnType("TEXT");
- b.Property("TheMovieDbId");
+ b.Property("TheMovieDbId")
+ .HasColumnType("TEXT");
- b.Property("Title");
+ b.Property("Title")
+ .HasColumnType("TEXT");
- b.Property("TvDbId");
+ b.Property("TvDbId")
+ .HasColumnType("TEXT");
- b.Property("Type");
+ b.Property("Type")
+ .HasColumnType("INTEGER");
- b.Property("Url");
+ b.Property("Url")
+ .HasColumnType("TEXT");
b.HasKey("Id");
@@ -60,27 +72,38 @@ namespace Ombi.Store.Migrations.ExternalSqlite
modelBuilder.Entity("Ombi.Store.Entities.EmbyEpisode", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
- b.Property("AddedAt");
+ b.Property("AddedAt")
+ .HasColumnType("TEXT");
- b.Property("EmbyId");
+ b.Property("EmbyId")
+ .HasColumnType("TEXT");
- b.Property("EpisodeNumber");
+ b.Property("EpisodeNumber")
+ .HasColumnType("INTEGER");
- b.Property("ImdbId");
+ b.Property("ImdbId")
+ .HasColumnType("TEXT");
- b.Property("ParentId");
+ b.Property("ParentId")
+ .HasColumnType("TEXT");
- b.Property("ProviderId");
+ b.Property("ProviderId")
+ .HasColumnType("TEXT");
- b.Property("SeasonNumber");
+ b.Property("SeasonNumber")
+ .HasColumnType("INTEGER");
- b.Property("TheMovieDbId");
+ b.Property("TheMovieDbId")
+ .HasColumnType("TEXT");
- b.Property("Title");
+ b.Property("Title")
+ .HasColumnType("TEXT");
- b.Property("TvDbId");
+ b.Property("TvDbId")
+ .HasColumnType("TEXT");
b.HasKey("Id");
@@ -89,26 +112,117 @@ namespace Ombi.Store.Migrations.ExternalSqlite
b.ToTable("EmbyEpisode");
});
+ modelBuilder.Entity("Ombi.Store.Entities.JellyfinContent", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property("AddedAt")
+ .HasColumnType("TEXT");
+
+ b.Property("ImdbId")
+ .HasColumnType("TEXT");
+
+ b.Property("JellyfinId")
+ .IsRequired()
+ .HasColumnType("TEXT");
+
+ b.Property("ProviderId")
+ .HasColumnType("TEXT");
+
+ b.Property("TheMovieDbId")
+ .HasColumnType("TEXT");
+
+ b.Property("Title")
+ .HasColumnType("TEXT");
+
+ b.Property("TvDbId")
+ .HasColumnType("TEXT");
+
+ b.Property("Type")
+ .HasColumnType("INTEGER");
+
+ b.Property("Url")
+ .HasColumnType("TEXT");
+
+ b.HasKey("Id");
+
+ b.ToTable("JellyfinContent");
+ });
+
+ modelBuilder.Entity("Ombi.Store.Entities.JellyfinEpisode", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
+
+ b.Property("AddedAt")
+ .HasColumnType("TEXT");
+
+ b.Property("EpisodeNumber")
+ .HasColumnType("INTEGER");
+
+ b.Property("ImdbId")
+ .HasColumnType("TEXT");
+
+ b.Property("JellyfinId")
+ .HasColumnType("TEXT");
+
+ b.Property("ParentId")
+ .HasColumnType("TEXT");
+
+ b.Property("ProviderId")
+ .HasColumnType("TEXT");
+
+ b.Property("SeasonNumber")
+ .HasColumnType("INTEGER");
+
+ b.Property("TheMovieDbId")
+ .HasColumnType("TEXT");
+
+ b.Property("Title")
+ .HasColumnType("TEXT");
+
+ b.Property("TvDbId")
+ .HasColumnType("TEXT");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ParentId");
+
+ b.ToTable("JellyfinEpisode");
+ });
+
modelBuilder.Entity("Ombi.Store.Entities.LidarrAlbumCache", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
- b.Property("AddedAt");
+ b.Property("AddedAt")
+ .HasColumnType("TEXT");
- b.Property("ArtistId");
+ b.Property("ArtistId")
+ .HasColumnType("INTEGER");
- b.Property("ForeignAlbumId");
+ b.Property("ForeignAlbumId")
+ .HasColumnType("TEXT");
- b.Property("Monitored");
+ b.Property("Monitored")
+ .HasColumnType("INTEGER");
- b.Property("PercentOfTracks");
+ b.Property("PercentOfTracks")
+ .HasColumnType("TEXT");
- b.Property("ReleaseDate");
+ b.Property("ReleaseDate")
+ .HasColumnType("TEXT");
- b.Property("Title");
+ b.Property("Title")
+ .HasColumnType("TEXT");
- b.Property("TrackCount");
+ b.Property("TrackCount")
+ .HasColumnType("INTEGER");
b.HasKey("Id");
@@ -118,15 +232,20 @@ namespace Ombi.Store.Migrations.ExternalSqlite
modelBuilder.Entity("Ombi.Store.Entities.LidarrArtistCache", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
- b.Property("ArtistId");
+ b.Property("ArtistId")
+ .HasColumnType("INTEGER");
- b.Property("ArtistName");
+ b.Property("ArtistName")
+ .HasColumnType("TEXT");
- b.Property("ForeignArtistId");
+ b.Property("ForeignArtistId")
+ .HasColumnType("TEXT");
- b.Property("Monitored");
+ b.Property("Monitored")
+ .HasColumnType("INTEGER");
b.HasKey("Id");
@@ -136,19 +255,26 @@ namespace Ombi.Store.Migrations.ExternalSqlite
modelBuilder.Entity("Ombi.Store.Entities.PlexEpisode", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
- b.Property("EpisodeNumber");
+ b.Property("EpisodeNumber")
+ .HasColumnType("INTEGER");
- b.Property("GrandparentKey");
+ b.Property("GrandparentKey")
+ .HasColumnType("INTEGER");
- b.Property("Key");
+ b.Property("Key")
+ .HasColumnType("INTEGER");
- b.Property("ParentKey");
+ b.Property("ParentKey")
+ .HasColumnType("INTEGER");
- b.Property("SeasonNumber");
+ b.Property("SeasonNumber")
+ .HasColumnType("INTEGER");
- b.Property("Title");
+ b.Property("Title")
+ .HasColumnType("TEXT");
b.HasKey("Id");
@@ -160,17 +286,23 @@ namespace Ombi.Store.Migrations.ExternalSqlite
modelBuilder.Entity("Ombi.Store.Entities.PlexSeasonsContent", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
- b.Property("ParentKey");
+ b.Property("ParentKey")
+ .HasColumnType("INTEGER");
- b.Property("PlexContentId");
+ b.Property("PlexContentId")
+ .HasColumnType("INTEGER");
- b.Property("PlexServerContentId");
+ b.Property("PlexServerContentId")
+ .HasColumnType("INTEGER");
- b.Property("SeasonKey");
+ b.Property("SeasonKey")
+ .HasColumnType("INTEGER");
- b.Property("SeasonNumber");
+ b.Property("SeasonNumber")
+ .HasColumnType("INTEGER");
b.HasKey("Id");
@@ -182,29 +314,41 @@ namespace Ombi.Store.Migrations.ExternalSqlite
modelBuilder.Entity("Ombi.Store.Entities.PlexServerContent", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
- b.Property("AddedAt");
+ b.Property("AddedAt")
+ .HasColumnType("TEXT");
- b.Property("ImdbId");
+ b.Property("ImdbId")
+ .HasColumnType("TEXT");
- b.Property("Key");
+ b.Property("Key")
+ .HasColumnType("INTEGER");
- b.Property("Quality");
+ b.Property("Quality")
+ .HasColumnType("TEXT");
- b.Property("ReleaseYear");
+ b.Property("ReleaseYear")
+ .HasColumnType("TEXT");
- b.Property("RequestId");
+ b.Property("RequestId")
+ .HasColumnType("INTEGER");
- b.Property("TheMovieDbId");
+ b.Property("TheMovieDbId")
+ .HasColumnType("TEXT");
- b.Property("Title");
+ b.Property("Title")
+ .HasColumnType("TEXT");
- b.Property("TvDbId");
+ b.Property("TvDbId")
+ .HasColumnType("TEXT");
- b.Property("Type");
+ b.Property("Type")
+ .HasColumnType("INTEGER");
- b.Property("Url");
+ b.Property("Url")
+ .HasColumnType("TEXT");
b.HasKey("Id");
@@ -214,11 +358,14 @@ namespace Ombi.Store.Migrations.ExternalSqlite
modelBuilder.Entity("Ombi.Store.Entities.RadarrCache", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
- b.Property("HasFile");
+ b.Property("HasFile")
+ .HasColumnType("INTEGER");
- b.Property("TheMovieDbId");
+ b.Property("TheMovieDbId")
+ .HasColumnType("INTEGER");
b.HasKey("Id");
@@ -228,9 +375,11 @@ namespace Ombi.Store.Migrations.ExternalSqlite
modelBuilder.Entity("Ombi.Store.Entities.SickRageCache", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
- b.Property("TvDbId");
+ b.Property("TvDbId")
+ .HasColumnType("INTEGER");
b.HasKey("Id");
@@ -240,13 +389,17 @@ namespace Ombi.Store.Migrations.ExternalSqlite
modelBuilder.Entity("Ombi.Store.Entities.SickRageEpisodeCache", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
- b.Property("EpisodeNumber");
+ b.Property("EpisodeNumber")
+ .HasColumnType("INTEGER");
- b.Property("SeasonNumber");
+ b.Property("SeasonNumber")
+ .HasColumnType("INTEGER");
- b.Property("TvDbId");
+ b.Property("TvDbId")
+ .HasColumnType("INTEGER");
b.HasKey("Id");
@@ -256,9 +409,11 @@ namespace Ombi.Store.Migrations.ExternalSqlite
modelBuilder.Entity("Ombi.Store.Entities.SonarrCache", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
- b.Property("TvDbId");
+ b.Property("TvDbId")
+ .HasColumnType("INTEGER");
b.HasKey("Id");
@@ -268,15 +423,20 @@ namespace Ombi.Store.Migrations.ExternalSqlite
modelBuilder.Entity("Ombi.Store.Entities.SonarrEpisodeCache", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasColumnType("INTEGER");
- b.Property