[PR #5863] [MERGED] use IF NOT EXISTS in migration #10695

Closed
opened 2026-02-07 06:25:05 +03:00 by OVERLORD · 0 comments
Owner

📋 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: masterHead: fix-index-migration


📝 Commits (1)

  • 586e1fc use 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 EXISTS to 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 to migrations.xml after running the migration.

Issues
Fixes #5474


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/5863 **Author:** [@cvium](https://github.com/cvium) **Created:** 4/19/2021 **Status:** ✅ Merged **Merged:** 4/19/2021 **Merged by:** [@Bond-009](https://github.com/Bond-009) **Base:** `master` ← **Head:** `fix-index-migration` --- ### 📝 Commits (1) - [`586e1fc`](https://github.com/jellyfin/jellyfin/commit/586e1fc58a52d343714958af713d102300ccfde0) use IF NOT EXISTS in migration ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Server/Migrations/Routines/AddPeopleQueryIndex.cs` (+3 -3) </details> ### 📄 Description <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** Use `IF NOT EXISTS` to 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 to `migrations.xml` after running the migration. **Issues** Fixes #5474 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 06:25:05 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#10695