fixes related to database migrations PR (#262)
This commit is contained in:
parent
fb1b789eee
commit
c3486717ca
|
@ -65,8 +65,8 @@
|
||||||
(close-account-realm)
|
(close-account-realm)
|
||||||
(log/debug "is new account? " new-account?)
|
(log/debug "is new account? " new-account?)
|
||||||
(if new-account?
|
(if new-account?
|
||||||
(let [new-path (str/replace path new-accout-realm-file (str address ".realm"))]
|
(let [new-path (str/replace path new-account-filename address)]
|
||||||
(log/debug "Moving file to " new-path)
|
(log/debug "Moving file " path " to " new-path)
|
||||||
(fs/move-file path new-path #(move-file-handler address % handler)))
|
(fs/move-file path new-path #(move-file-handler address % handler)))
|
||||||
(do
|
(do
|
||||||
(reset! account-realm (open-migrated-realm address account/schemas))
|
(reset! account-realm (open-migrated-realm address account/schemas))
|
||||||
|
|
Loading…
Reference in New Issue