fixes related to database migrations PR (#262)
Former-commit-id: c3486717ca
This commit is contained in:
parent
06332ab8fb
commit
e9d90475a3
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue