parent
f8cdd393ff
commit
f289bee79d
|
@ -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 }
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user