parent
f8cdd393ff
commit
f289bee79d
|
@ -253,7 +253,7 @@ let migrateLegacy currentId legacyId = backgroundTask {
|
||||||
conn
|
conn
|
||||||
|> Sql.existingConnection
|
|> Sql.existingConnection
|
||||||
|> Sql.query $"SELECT * FROM {Table.Success} WHERE data @> @criteria"
|
|> 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>
|
|> Sql.executeAsync toDocument<Success>
|
||||||
for success in successes do
|
for success in successes do
|
||||||
let newSuccess = { success with Id = SuccessId.create (); CitizenId = currentId }
|
let newSuccess = { success with Id = SuccessId.create (); CitizenId = currentId }
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<DebugType>embedded</DebugType>
|
<DebugType>embedded</DebugType>
|
||||||
<GenerateDocumentationFile>false</GenerateDocumentationFile>
|
<GenerateDocumentationFile>false</GenerateDocumentationFile>
|
||||||
<AssemblyVersion>3.0.1.0</AssemblyVersion>
|
<AssemblyVersion>3.0.2.0</AssemblyVersion>
|
||||||
<FileVersion>3.0.1.0</FileVersion>
|
<FileVersion>3.0.2.0</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user