From f289bee79d87ae8d0d1c923749772337bd7c0f08 Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Thu, 9 Feb 2023 11:33:59 -0500 Subject: [PATCH] Fix migration query (#41) - Bump version --- src/JobsJobsJobs/Citizens/Data.fs | 2 +- src/JobsJobsJobs/Directory.Build.props | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/JobsJobsJobs/Citizens/Data.fs b/src/JobsJobsJobs/Citizens/Data.fs index 9b685c8..3c78ce5 100644 --- a/src/JobsJobsJobs/Citizens/Data.fs +++ b/src/JobsJobsJobs/Citizens/Data.fs @@ -253,7 +253,7 @@ let migrateLegacy currentId legacyId = backgroundTask { conn |> Sql.existingConnection |> Sql.query $"SELECT * FROM {Table.Success} WHERE data @> @criteria" - |> Sql.parameters [ "@criteria", Sql.string oldCriteria ] + |> Sql.parameters [ "@criteria", Sql.jsonb oldCriteria ] |> Sql.executeAsync toDocument for success in successes do let newSuccess = { success with Id = SuccessId.create (); CitizenId = currentId } diff --git a/src/JobsJobsJobs/Directory.Build.props b/src/JobsJobsJobs/Directory.Build.props index e803ac5..d4a5fc7 100644 --- a/src/JobsJobsJobs/Directory.Build.props +++ b/src/JobsJobsJobs/Directory.Build.props @@ -4,7 +4,7 @@ enable embedded false - 3.0.1.0 - 3.0.1.0 + 3.0.2.0 + 3.0.2.0