Make MaxActiveSessions not nullable

Fixes a bad assumption with the previous migration.
This commit is contained in:
Joshua M. Boniface 2020-10-05 13:33:22 -04:00
parent 5e11eb0359
commit 49c363751a
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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")