aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-05-26 21:20:55 -0400
committerPatrick Barron <barronpm@gmail.com>2020-05-26 21:20:55 -0400
commit46a0a2a6011bbeaf92af45f9478dda8608ab2c6a (patch)
treea389883d96001ef1427488f3104daeeeea22760e /Jellyfin.Server.Implementations
parent7c823464bca70570f2f53f8af6913e53d385b784 (diff)
Update migrations and fix a few bugs
Diffstat (limited to 'Jellyfin.Server.Implementations')
-rw-r--r--Jellyfin.Server.Implementations/Migrations/20200527010628_AddUsers.Designer.cs (renamed from Jellyfin.Server.Implementations/Migrations/20200517002411_AddUsers.Designer.cs)11
-rw-r--r--Jellyfin.Server.Implementations/Migrations/20200527010628_AddUsers.cs (renamed from Jellyfin.Server.Implementations/Migrations/20200517002411_AddUsers.cs)3
-rw-r--r--Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs8
3 files changed, 15 insertions, 7 deletions
diff --git a/Jellyfin.Server.Implementations/Migrations/20200517002411_AddUsers.Designer.cs b/Jellyfin.Server.Implementations/Migrations/20200527010628_AddUsers.Designer.cs
index 36c58c8ca..e0321dfa7 100644
--- a/Jellyfin.Server.Implementations/Migrations/20200517002411_AddUsers.Designer.cs
+++ b/Jellyfin.Server.Implementations/Migrations/20200527010628_AddUsers.Designer.cs
@@ -1,5 +1,4 @@
#pragma warning disable CS1591
-#pragma warning disable SA1601
// <auto-generated />
using System;
@@ -12,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Jellyfin.Server.Implementations.Migrations
{
[DbContext(typeof(JellyfinDb))]
- [Migration("20200517002411_AddUsers")]
+ [Migration("20200527010628_AddUsers")]
partial class AddUsers
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
@@ -20,7 +19,7 @@ namespace Jellyfin.Server.Implementations.Migrations
#pragma warning disable 612, 618
modelBuilder
.HasDefaultSchema("jellyfin")
- .HasAnnotation("ProductVersion", "3.1.3");
+ .HasAnnotation("ProductVersion", "3.1.4");
modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
{
@@ -129,7 +128,8 @@ namespace Jellyfin.Server.Implementations.Migrations
b.Property<string>("Path")
.IsRequired()
- .HasColumnType("TEXT");
+ .HasColumnType("TEXT")
+ .HasMaxLength(512);
b.HasKey("Id");
@@ -331,6 +331,9 @@ namespace Jellyfin.Server.Implementations.Migrations
b.Property<int>("SubtitleMode")
.HasColumnType("INTEGER");
+ b.Property<int>("SyncPlayAccess")
+ .HasColumnType("INTEGER");
+
b.Property<string>("Username")
.IsRequired()
.HasColumnType("TEXT")
diff --git a/Jellyfin.Server.Implementations/Migrations/20200517002411_AddUsers.cs b/Jellyfin.Server.Implementations/Migrations/20200527010628_AddUsers.cs
index 55c6f371c..0157e668d 100644
--- a/Jellyfin.Server.Implementations/Migrations/20200517002411_AddUsers.cs
+++ b/Jellyfin.Server.Implementations/Migrations/20200527010628_AddUsers.cs
@@ -17,7 +17,7 @@ namespace Jellyfin.Server.Implementations.Migrations
{
Id = table.Column<int>(nullable: false)
.Annotation("Sqlite:Autoincrement", true),
- Path = table.Column<string>(nullable: false),
+ Path = table.Column<string>(maxLength: 512, nullable: false),
LastModified = table.Column<DateTime>(nullable: false)
},
constraints: table =>
@@ -58,6 +58,7 @@ namespace Jellyfin.Server.Implementations.Migrations
RemoteClientBitrateLimit = table.Column<int>(nullable: true),
InternalId = table.Column<long>(nullable: false),
ProfileImageId = table.Column<int>(nullable: true),
+ SyncPlayAccess = table.Column<int>(nullable: false),
RowVersion = table.Column<uint>(nullable: false)
},
constraints: table =>
diff --git a/Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs b/Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs
index 46714e865..0494744c7 100644
--- a/Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs
+++ b/Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs
@@ -15,7 +15,7 @@ namespace Jellyfin.Server.Implementations.Migrations
#pragma warning disable 612, 618
modelBuilder
.HasDefaultSchema("jellyfin")
- .HasAnnotation("ProductVersion", "3.1.3");
+ .HasAnnotation("ProductVersion", "3.1.4");
modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
{
@@ -124,7 +124,8 @@ namespace Jellyfin.Server.Implementations.Migrations
b.Property<string>("Path")
.IsRequired()
- .HasColumnType("TEXT");
+ .HasColumnType("TEXT")
+ .HasMaxLength(512);
b.HasKey("Id");
@@ -326,6 +327,9 @@ namespace Jellyfin.Server.Implementations.Migrations
b.Property<int>("SubtitleMode")
.HasColumnType("INTEGER");
+ b.Property<int>("SyncPlayAccess")
+ .HasColumnType("INTEGER");
+
b.Property<string>("Username")
.IsRequired()
.HasColumnType("TEXT")