dm-hook: fix migration

This commit is contained in:
Liam Fitzgerald 2021-05-20 15:26:11 +10:00
parent 35874233b0
commit 93335fc1ea
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -71,15 +71,16 @@
++ graph
%+ roll dms
|= [rid=resource =graph:store]
^- graph:store
=/ =ship (counterparty rid)
=| =post:store
=: author.post our.bowl
index.post [ship ~]
time-sent.post now.bowl
==
=. graph
(update-indices ~[ship] graph)
(put:orm:store graph `@`ship [%& post] %graph graph)
=/ dm=graph:store
(update-indices ~[ship] (get-graph-mop:gra rid))
(put:orm:store graph `@`ship [%& post] %graph dm)
--
::
++ on-save !>(state)