From 4ddbacd61256a841b482b942555dbf78db5bf783 Mon Sep 17 00:00:00 2001 From: janherich Date: Thu, 30 Nov 2017 23:22:07 +0100 Subject: [PATCH] Fix migrations --- .../data_store/realm/schemas/account/v19/core.cljs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/status_im/data_store/realm/schemas/account/v19/core.cljs b/src/status_im/data_store/realm/schemas/account/v19/core.cljs index c02999689e..0ad8d580c7 100644 --- a/src/status_im/data_store/realm/schemas/account/v19/core.cljs +++ b/src/status_im/data_store/realm/schemas/account/v19/core.cljs @@ -73,6 +73,12 @@ ["phone"] {:content-command-ref ["console" :response 50 "phone"]} ["confirmation-code"] {:content-command-ref ["console" :response 50 "confirmation-code"]}}) +(def transactor-requests->new-props + {;; former transactor-personal request + ["send" 1] {:content-command-ref ["transactor" :response 83 "send"]} + ;; former transactor-group request + ["send" 2] {:content-command-ref ["transactor" :response 85 "send"]}}) + (defn update-commands [selector mapping new-realm content-type] (some-> new-realm (.objects "message") @@ -89,4 +95,5 @@ (remove-contact! new-realm "transactor-personal") (remove-contact! new-realm "transactor-group") (update-commands (juxt :bot :command) owner-command->new-props new-realm "command") - (update-commands (juxt :command) console-requests->new-props new-realm "command-request")) + (update-commands (juxt :command) console-requests->new-props new-realm "command-request") + (update-commands (juxt :command (comp count :prefill)) transactor-requests->new-props new-realm "command-request"))