mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #5863] [MERGED] use IF NOT EXISTS in migration #10695
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/5863
Author: @cvium
Created: 4/19/2021
Status: ✅ Merged
Merged: 4/19/2021
Merged by: @Bond-009
Base:
master← Head:fix-index-migration📝 Commits (1)
586e1fcuse IF NOT EXISTS in migration📊 Changes
1 file changed (+3 additions, -3 deletions)
View changed files
📝
Jellyfin.Server/Migrations/Routines/AddPeopleQueryIndex.cs(+3 -3)📄 Description
Changes
Use
IF NOT EXISTSto prevent adding the same index multiple times. I have not been able to reproduce the bug, but the only way it can happen is if it fails to write tomigrations.xmlafter running the migration.Issues
Fixes #5474
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.