From 8785fe02e8bef08e38526f8a967da6faa98d4739 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 26 Jun 2023 17:49:52 +0300 Subject: [PATCH] Execute update queries only for certain rows in migration 34 --- .../Datastore/Migration/034_history_fix_data_titles.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NzbDrone.Core/Datastore/Migration/034_history_fix_data_titles.cs b/src/NzbDrone.Core/Datastore/Migration/034_history_fix_data_titles.cs index e034ca5c8..b6dddad1e 100644 --- a/src/NzbDrone.Core/Datastore/Migration/034_history_fix_data_titles.cs +++ b/src/NzbDrone.Core/Datastore/Migration/034_history_fix_data_titles.cs @@ -50,6 +50,11 @@ private void MigrateHistoryDataTitle(IDbConnection conn, IDbTransaction tran) data = jsonObject.ToJson(); + if (!jsonObject.ContainsKey("grabTitle") && !jsonObject.ContainsKey("title")) + { + continue; + } + updatedHistory.Add(new { Id = id,