Fix migration query (#41)

- Bump version
This commit is contained in:
Daniel J. Summers 2023-02-09 11:33:59 -05:00
parent f8cdd393ff
commit f289bee79d
2 changed files with 3 additions and 3 deletions

View File

@ -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<Success>
for success in successes do
let newSuccess = { success with Id = SuccessId.create (); CitizenId = currentId }

View File

@ -4,7 +4,7 @@
<Nullable>enable</Nullable>
<DebugType>embedded</DebugType>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<AssemblyVersion>3.0.1.0</AssemblyVersion>
<FileVersion>3.0.1.0</FileVersion>
<AssemblyVersion>3.0.2.0</AssemblyVersion>
<FileVersion>3.0.2.0</FileVersion>
</PropertyGroup>
</Project>