Преглед изворни кода

Make MaxActiveSessions not nullable

Fixes a bad assumption with the previous migration.
Joshua M. Boniface пре 4 година
родитељ
комит
49c363751a

+ 1 - 1
Jellyfin.Server.Implementations/Migrations/20201004171403_AddMaxActiveSessions.cs

@@ -13,7 +13,7 @@ namespace Jellyfin.Server.Implementations.Migrations
                 name: "MaxActiveSessions",
                 schema: "jellyfin",
                 table: "Users",
-                nullable: true);
+                nullable: false);
         }
 
         protected override void Down(MigrationBuilder migrationBuilder)

+ 1 - 1
Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs

@@ -344,7 +344,7 @@ namespace Jellyfin.Server.Implementations.Migrations
                     b.Property<int?>("LoginAttemptsBeforeLockout")
                         .HasColumnType("INTEGER");
 
-                    b.Property<int?>("MaxActiveSessions")
+                    b.Property<int>("MaxActiveSessions")
                         .HasColumnType("INTEGER");
 
                     b.Property<int?>("MaxParentalAgeRating")