Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a database upgrade system, use it to fix v12 db #107

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Insprill
Copy link

@Insprill Insprill commented Jan 5, 2025

In v12, the ItemId column in UserInfoRec was changed from a string to a Guid (#97). In v13, released 3 days later, it was changed back to a string (#100). However, anyone who added media to their library with v12 now has unusable database entries since the types no longer match.

This PR adds a generic system for upgrading the database and uses it to convert any Guid types back to strings.

Fixes #104.

I'm leaving this as a draft since I don't currently have access to my Jellyfin server to test it, although it should™ be good to go if others would like to test it first (with a db backup!).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exception when updating media added with v12
1 participant