mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #4279] [MERGED] Make MaxActiveSessions not nullable #10001
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/4279
Author: @joshuaboniface
Created: 10/5/2020
Status: ✅ Merged
Merged: 10/6/2020
Merged by: @joshuaboniface
Base:
master← Head:fix-bad-migration📝 Commits (2)
49c3637Make MaxActiveSessions not nullableb3249e8Add default value of 0📊 Changes
2 files changed (+3 additions, -2 deletions)
View changed files
📝
Jellyfin.Server.Implementations/Migrations/20201004171403_AddMaxActiveSessions.cs(+2 -1)📝
Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs(+1 -1)📄 Description
Changes
Fixes a bad assumption with the previous migration.
WARNING: THIS WILL BREAK THE DB FOR ANYONE WHO DEPLOYED THE LAST FEW UNSTABLE RELEASES THAT APPLIED THE MIGRATION, i.e. any since #4269. To fix it, because of sqlite's stupidity, you have to drop the whole table and recreate it. Annoying, I know. Here's how to fix it:
jellyfin.dbis located (e.g./var/lib/jellyfin/data).sudo -u jellyfin sqlite3 jellyfin.dbUserstable:to
sudo -u jellyfin sqlite3 jellyfin.db) and drop the Users table (drop table Users;).sudo -u jellyfin sqlite3 < jellyfin-users.tmp.sqlsudo -u jellyfin rm jellyfin-users.tmp.sqlOr, in convenient script format:
Or in full-SQL, run this with
sudo -u jellyfin sqlite3 jellyfin.db < script.sql:Issues
N/A
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.