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