From e9d90475a3d2ed50fdd589ebd3345765cf65ed64 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Wed, 5 Oct 2016 12:54:48 +0300 Subject: [PATCH] fixes related to database migrations PR (#262) Former-commit-id: c3486717ca87228d56a3d9149254d3b00e0201d3 --- src/status_im/data_store/realm/core.cljs | 4 ++-- .../account/v1/{chat-contact.cljs => chat_contact.cljs} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename src/status_im/data_store/realm/schemas/account/v1/{chat-contact.cljs => chat_contact.cljs} (100%) diff --git a/src/status_im/data_store/realm/core.cljs b/src/status_im/data_store/realm/core.cljs index 48178a66b8..fae29539a1 100644 --- a/src/status_im/data_store/realm/core.cljs +++ b/src/status_im/data_store/realm/core.cljs @@ -65,8 +65,8 @@ (close-account-realm) (log/debug "is new account? " new-account?) (if new-account? - (let [new-path (str/replace path new-accout-realm-file (str address ".realm"))] - (log/debug "Moving file to " new-path) + (let [new-path (str/replace path new-account-filename address)] + (log/debug "Moving file " path " to " new-path) (fs/move-file path new-path #(move-file-handler address % handler))) (do (reset! account-realm (open-migrated-realm address account/schemas)) diff --git a/src/status_im/data_store/realm/schemas/account/v1/chat-contact.cljs b/src/status_im/data_store/realm/schemas/account/v1/chat_contact.cljs similarity index 100% rename from src/status_im/data_store/realm/schemas/account/v1/chat-contact.cljs rename to src/status_im/data_store/realm/schemas/account/v1/chat_contact.cljs