mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #5717] [MERGED] make custompref value nullable #10625
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/5717
Author: @cvium
Created: 4/7/2021
Status: ✅ Merged
Merged: 4/8/2021
Merged by: @Bond-009
Base:
master← Head:nullable-custompref-value📝 Commits (2)
d772fddmake custompref value nullable4892e0cfix build...somehow📊 Changes
6 files changed (+563 additions, -10 deletions)
View changed files
📝
Jellyfin.Data/Entities/CustomItemDisplayPreferences.cs(+2 -2)➕
Jellyfin.Server.Implementations/Migrations/20210407110544_NullableCustomPrefValue.Designer.cs(+520 -0)➕
Jellyfin.Server.Implementations/Migrations/20210407110544_NullableCustomPrefValue.cs(+35 -0)📝
Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs(+4 -6)📝
Jellyfin.Server.Implementations/Users/DisplayPreferencesManager.cs(+1 -1)📝
MediaBrowser.Controller/IDisplayPreferencesManager.cs(+1 -1)📄 Description
Changes
some clients send a null value. It has been discussed whether it should be nullable in the DB or if we handle it outside the DB.
Making the column nullable is simpler imo. If it's not nullable we have to remove any nulled rows from the db and skip if it doesn't already exist etc.
Issues
Fixes https://github.com/jellyfin/jellyfin/issues/5679
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.