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

Fix migration logic #73

Merged
merged 3 commits into from
May 13, 2024
Merged

Fix migration logic #73

merged 3 commits into from
May 13, 2024

Conversation

gnattu
Copy link
Member

@gnattu gnattu commented May 12, 2024

We cannot just naively move the database folder because database will store absolute path to the datadir. Just use that instead of moving folders.

Fixes #71

This is really badly written two years ago and never got a chance to test it. It is wrong in two ways:

- The new folder creation needs to be performed before the item moving
- The item moving only need to be performed when the new folder has to be  crreated
Also check for old path in this case
@anthonylavado anthonylavado merged commit 009cdb0 into jellyfin:master May 13, 2024
1 check failed
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.

Unable to properly migrate old directories after updating to 10.9.0
3 participants