Merge pull request #4279 from joshuaboniface/fix-bad-migration

Make MaxActiveSessions not nullable
This commit is contained in:
Joshua M. Boniface
2020-10-05 20:43:36 -04:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -13,7 +13,8 @@ namespace Jellyfin.Server.Implementations.Migrations
name: "MaxActiveSessions",
schema: "jellyfin",
table: "Users",
nullable: true);
nullable: false,
defaultValue: 0);
}
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")