mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-21 07:28:30 +03:00
dm-hook: fix migration
This commit is contained in:
parent
35874233b0
commit
93335fc1ea
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user