Skip to content

Commit

Permalink
Execute update queries only for certain rows in migration 34
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Jun 26, 2023
1 parent b2b877a commit 8785fe0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8785fe0

Please sign in to comment.